Nav list item width

Discussion in 'HTML' started by Malcolm Collett, Jan 15, 2004.

  1. 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
    Malcolm Collett, Jan 15, 2004
    #1
    1. Advertising

  2. 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.
    Lauri Raittila, Jan 15, 2004
    #2
    1. Advertising

  3. Malcolm Collett

    rf Guest

    "Malcolm Collett" <> wrote in message
    news:...
    > 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.
    rf, Jan 15, 2004
    #3
  4. > > 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
    Malcolm Collett, Jan 16, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AndrewF
    Replies:
    1
    Views:
    738
    Bruce Barker
    Oct 10, 2005
  2. Xu
    Replies:
    11
    Views:
    8,529
    Andrew Thompson
    Jul 16, 2005
  3. Not4u
    Replies:
    9
    Views:
    1,022
    Not4u
    Feb 27, 2004
  4. Coder
    Replies:
    1
    Views:
    678
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  5. QUASAR
    Replies:
    6
    Views:
    405
    QUASAR
    Jan 17, 2004
Loading...

Share This Page