On Tuesday, Jul 13, 2004, at 07:32 Australia/Sydney, Scott Reston wrote:
I'm attempting to build a horizontal menu that from an unordered list. My plan is to provide the list as text in the html, then use an image-replacement scheme (ala http://www.mezzoblue.com/tests/revised-image-replacement/) to swap out the text with images. It looks to me like image-replacement depends on me being able to set the width of the containing element, in my case, an <a>
I want the CSS to work without being altered, whether i include all of the <li> menu items or not, so I don't know how wide the overall <ul> will be when the page is actually created.
Is it possible to set width on an inline element? Can I get the same effect from some sort of absolute positioning (when i don't know the widths of elements)?
Check out Doug Bowman's Sliding Doors on A List Apart:
< http://www.alistapart.com/articles/slidingdoors2/ >
I've used it on one of my sites, and it's brilliant. The width of the <li> is determined by the text content of the <a> - once it's set, all you need to do is add <li>s with text links.
Nick
___________________________ Omnivision. Websight. http://www.omnivision.com.au/
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
