Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Nav list item width

Reply
Thread Tools

Nav list item width

 
 
Malcolm Collett
Guest
Posts: n/a
 
      01-15-2004
On this site
http://users.iafrica.com/m/mc/mcollett/SPS/Home.htm
I have a nav list on the left.

The style sheet contains this:
#NavLeft ul li a {... width:9em; ...}
The idea is to give all the "buttons" the same width. This works in IE5.5,
but in IE6 the buttons shrink to fit the text.

What is the correct way to fix it?

Malcolm



 
Reply With Quote
 
 
 
 
Lauri Raittila
Guest
Posts: n/a
 
      01-15-2004
In article Malcolm Collett wrote:
> On this site
> http://users.iafrica.com/m/mc/mcollett/SPS/Home.htm
> I have a nav list on the left.
>
> The style sheet contains this:
> #NavLeft ul li a {... width:9em; ...}
> The idea is to give all the "buttons" the same width. This works in IE5.5,
> but in IE6 the buttons shrink to fit the text.
>
> What is the correct way to fix it?


a {display:block;}

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      01-15-2004

"Malcolm Collett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On this site
> http://users.iafrica.com/m/mc/mcollett/SPS/Home.htm
> I have a nav list on the left.
>
> The style sheet contains this:
> #NavLeft ul li a {... width:9em; ...}
> The idea is to give all the "buttons" the same width. This works in IE5.5,
> but in IE6 the buttons shrink to fit the text.
>
> What is the correct way to fix it?


#NavLeft a {display: block;}

Cheers
Richard.


 
Reply With Quote
 
Malcolm Collett
Guest
Posts: n/a
 
      01-16-2004
> > The style sheet contains this:
> > #NavLeft ul li a {... width:9em; ...}
> > The idea is to give all the "buttons" the same width. This works in

IE5.5,
> > but in IE6 the buttons shrink to fit the text.
> >
> > What is the correct way to fix it?

>
> a {display:block;}


Thanks Lauri, Richard

My next big task is selecting (and *agreeing*) a colour scheme! This is
proving to be much more difficult than learning html/css.

Malcolm


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NAV, NAV 5x.... Norton Anit-Virus?? MrDave Microsoft Certification 0 08-09-2009 07:48 PM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
JComboBox width, dropdown list width Xu Java 11 07-15-2005 11:54 PM
CSS 2 columns (1 nav + 1 content) 100% height & 100% width Not4u HTML 9 02-27-2004 10:09 AM



Advertisments