OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Spans
This page's ID:
21706
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
As far as I know, Divs are almost identical to Spans except they default to having the max width, and they are block elements. However I'm finding adding padding and margins to spans isn't working, is there some reason why the span element doesn't except this? Am I right in believing this? Ok, let me give a bit more detail[code]ul.headLinks { width: 200px; height: 26px; padding: 0px; margin: 0px; border-left: 1px solid #ffffff; } li.inline { display: inline; padding: 5px 10px 0px 10px; border-right: 1px dotted #cccccc; } li.last { display: inline; padding: 5px 10px 0px 10px; border-right: 0px; } [/code]This seems ok to me, here's the HTML[code]<ul class="headLinks"> <li class="inline"><a href="#" class="headLinksText">Home</a></li> <li class="inline"><a href="#" class="headLinksText">Pictures</a></li> <li class="last"><a href="#" class="headLinksText">About</a></li> </ul>[/code]I got most of this code from A List Apart, when I run it the top padding doesn't come into effect, but the left and right does, any ideas what a solution might be? Cheers, Blaise [small](Edited by [internallink=3624]Blaise[/internallink] on 05-07-2004 13:31)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »