OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
CSS: Margins #2
This page's ID:
11013
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
They [i]are[/i] in a <div>. {{edit for clarification: <div>'s have *nothing* to do with CSS. They are an HTML element. Like any other HTML element, you can specify style attributes for them via CSS, including 'position'.}} But you don't need a <div> for each image. They simply line up naturally at the top of the <div> as they should. You also don't need to specify their left position. The background image runs 30px down from the top of the <div>, as the CSS tells it to. If you were to need to position each actual image, for some other purpose, you still don't need a <div>. All a <div> is is a 'blank' block level element. You give the img the id instead, and it will work the same. The 'contact' graphic is in it's own <div> nested inside the main <div>, but it actually doesn't have to be - you could just give the <img> the id of "contact" and remove the <div> tags and the styles would be applied to it the same as they are now. XHTML is simply more structured HTML. More "proper" you might say. [url=http://in-dented.com/asylum.php] [img]http://in-dented.com/sigs/indentsig.gif[/img] [/url] [This message has been edited by DL-44 (edited 07-23-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »