Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / December 2004



Tip: Looking for answers? Try searching our database.

Fixed width for <li>

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kerberos - 27 Dec 2004 20:27 GMT
I haven't been able to define a fixed width (well, I chose a 20% width)  
for the li element used in the navigation menu:
http://www.auriance.com/docs/auriance/
Style sheet here:
http://www.auriance.com/docs/auriance/css/main.css
Is there a way to have all links be the same width (20%)?
Thanks,

Signature

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org

Chris Leipold - 28 Dec 2004 07:37 GMT
Hi,

> I haven't been able to define a fixed width (well, I chose a 20% width)  
> Is there a way to have all links be the same width (20%)?
Yes, try to set the <li>s block and float:left.

Chris
Kerberos - 28 Dec 2004 19:26 GMT
Em Tue, 28 Dec 2004 08:37:50 +0100, Chris Leipold <cleipold@dietzk.de>  
escreveu:

> Hi,
>
[quoted text clipped - 3 lines]
>
> Chris

Thanks Chris, it worked as expected. The only problem now is that the "a"  
tag doesn't extend to the right margin of each little link boxes when I  
hover over the links - The red background doesn't extend to the right  
margin.
How could I do this? (Sorry, I'm still learning!)
Thank you.

Signature

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org

Kerberos - 28 Dec 2004 19:47 GMT
> Em Tue, 28 Dec 2004 08:37:50 +0100, Chris Leipold <cleipold@dietzk.de>  
> escreveu:
[quoted text clipped - 13 lines]
> How could I do this? (Sorry, I'm still learning!)
> Thank you.

I found what the problem was, I forgot to set the "a" tag to be displayed  
as a block.
Looks good now ;)

Signature

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org

Chris Leipold - 29 Dec 2004 07:46 GMT
Hi,

>> [...]
>> How could I do this? (Sorry, I'm still learning!)
We're all learning ;-)

>> Thank you.
De rien.

Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.