OZONE Asylum
Forums
Stupid Basic HTML
Correct HTML Structure Questions
This page's ID:
28318
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]Setting a width for the table via your CSS, and specifying margin:auto; will do the trick...[/quote] In new browsers this works, but not in some older browsers unfortunately. The only way to cover both cases is to do the margin:auto and place the table within a centered element. Obviously there is no need to use paragraphs, divs would probably better - the only reason paragraphs were easier in my situation is that if i placed the table in a paragraph where the text was centered, the table got centered, if the paragraph text was left, so was the table. I guess depending on what your doing you might not need to align the paragraph or table at all and it should be inherited by the text-align of the div. Unfortunately making stuff work for old browsers does change how you would do things sometimes... such is life. [quote]As for images - if the need arises for an image actually inline, I can see putting it in the paragraph. More often than not, floating the image outside of the paragraph is what is called for.[/quote] Yeah this is mostly what happens anyway, image is one of those elements that can be used just about anywhere. Even with links etc.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »