Topic: Align without "align=" and "target" |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: KC, KS |
![]() ![]() ![]() ![]() OK, after searching a bit I found a couple posts on aligning something to the right using margins. But what if you just want to center some text? Do you just use "text-align: center?" |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() ![]() ![]() ![]() quote:
quote:
quote:
|
Maniac (V) Inmate From: California |
![]() ![]() ![]() ![]() Don't forget to check the FAQ: |
Maniac (V) Inmate From: under the bed |
![]() ![]() ![]() ![]() quote:
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() ![]() ![]() ![]() krets: Yep ozphactor got the target attribute business right (you can use JavaScript or modular XHTML) and this deals wit centring: |
Maniac (V) Inmate From: California |
![]() ![]() ![]() ![]() Emps: About that FAQ... I thought the text-align hack for IE5 was supposed to be applied to the object containing the div you want centered, and not to the div itself. code: body {
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() ![]() ![]() ![]() ozphactor: Yep you are correct - I suspect that I threw that together a little quickly |