Topic: Align without "align=" and "target" |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: KC, KS |
posted 08-25-2003 05:58
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 |
posted 08-25-2003 06:03
quote:
quote:
quote:
|
Maniac (V) Inmate From: California |
posted 08-25-2003 07:01
Don't forget to check the FAQ: |
Maniac (V) Inmate From: under the bed |
posted 08-25-2003 14:11
quote:
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-25-2003 19:13
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 |
posted 08-25-2003 21:25
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 |
posted 08-25-2003 22:09
ozphactor: Yep you are correct - I suspect that I threw that together a little quickly |