i want to use vertical-align: middle; but i have seen it posted on other threads that it isnt supported by all or something. Could i get a little help on this. also, if it isnt supported what could i use? thx
@Paul_JrAug 11.2004 — #Inline elements are things like the [SIZE=1]STRONG[/SIZE], [SIZE=1]SPAN[/SIZE], and [SIZE=1]IMG[/SIZE] elements. They go with the flow of the text; they will stack horizontally, you cannot legally apply width, height, padding, or margin to any of these elements. Block-level elements (like [SIZE=1]DIV[/SIZE] and [SIZE=1]P[/SIZE]) on the other hand, take up the entire width of their containing element; they stack vertically. That's why you have to float two [SIZE=1]DIV[/SIZE]s to get them to sit next to each other.
@pawkyauthorAug 11.2004 — #ok, cool thx. not sure how vertical-align would actually do anything w/ those though ? i just tryied using it w/ span and it didnt do anything like i thought >.< thx for the help, now to figure something else out ?
@Paul_JrAug 11.2004 — #[i]Originally posted by pawky [/i]
[B]ok, cool thx. not sure how vertical-align would actually do anything w/ those though ? i just tryied using it w/ span and it didnt do anything like i thought >.< thx for the help, now to figure something else out ? [/B][/QUOTE] Yeah, I've had sketchy support (okay, none at all) with [size=1]VERTICAL-ALIGN[/size], so I don't normally use it (can't remember the last time I did).
You can [url=http://www.w3.org/Style/CSS/Test/CSS1/current/test544.htm]look here[/url] to see some examples.
Here's sort of an example:
[b]CSS:[/b] [size=1] p { padding: 2em 0.5em; text-align: center; border: 1px solid #000; } p span { vertical-align: super; } [/size] [b]Code:[/b] [size=1] <p>This is a <span>paragraph</span>.</p> [/size]
@pawkyauthorAug 11.2004 — #oh, ok. i guess i c now. what a pain though >.< they should have made it for block elements as well ? well, thx for the help ill c how i can use it ?