OZONE Asylum
Forums
All Browsers Suck
Centering an Image within a Block Element
This page's ID:
25002
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote]LOOKS LIKE a DIV to me[/quote] But it's not. [quote]so.. It works simply written: img { border: 0; text-align: center; }[/quote] In some browsers it may work that way. It is not intended to, nor does it in all the major browsers. [quote]As I understand that command -text-align -is applied to block level elements...not just text..[/quote] From the W3C - [quote]This property describes how inline content of a block is aligned. Values have the following meanings:[/quote] Meaning that text-align determines the horizontal alignment of inline elements withing a block element. So if you have a <p> (or a <div>, or any other block-level element), with "text-align:center;", the text [b]within[/b] the paragraph will be centered, but the paragraph itself will not be affected by the declaration. [url=http://in-dented.com/sigs.html][img]http://www.in-dented.com/sigs/knot_sig_32.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »