Alignment issue - any tweaks known please?

Discussion in 'HTML' started by lime, Feb 25, 2005.

  1. lime

    lime Guest

    Hello,

    I have an alignment issue and wondered whether there were either any tweaks
    to overcome the way IE renders the info or whether I am doing something
    incorrectly:

    http://www.limelightstudio.com.au/test.html

    The navigation menu boxes are centered correctly in FireFox, Netscape &
    Opera, however are pushed further to the right when viewing in IE...

    In order for the boxes to be aligned as they are in FF, NS & Opera I have
    used "padding-left : 15px;" in td.menu

    By removing this style, the boxes are flush left against the browser window,
    but it looks correct in IE.

    Have I used the incorrect style to acheive the centered alignment?

    --
    Helen, lime, et al.
     
    lime, Feb 25, 2005
    #1
    1. Advertising

  2. lime

    Mark Parnell Guest

    Previously in alt.html, lime <> said:

    > Hello,


    G'day.

    > http://www.limelightstudio.com.au/test.html
    >
    > The navigation menu boxes are centered correctly in FireFox, Netscape &
    > Opera,


    Looks off to the left a bit here (Moz 1.7.5).

    > however are pushed further to the right when viewing in IE...


    True.

    That looks like a list of links to me. Why aren't they marked up as a
    list?

    http://www.alistapart.com/articles/taminglists/

    It's not tabular data either. Why is it in a table?

    http://www.allmyfaqs.com/faq.pl?Tableless_layouts

    > Have I used the incorrect style to acheive the centered alignment?


    Not particularly, though sizing it in px is not a good idea anyway, as
    the text overflows the boxes when the font size is increased. Much
    better to size it in em, so that it sizes relative to the font size.

    At a rough guess, it is the text-align: center; on the table. IE
    (incorrectly) centres block-level elements as well as inline elements.
    I'd say that is probably what is causing your problem.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Feb 25, 2005
    #2
    1. Advertising

  3. lime

    lime Guest

    "Mark Parnell" ...
    > Previously in alt.html, lime <> said:
    >
    >> http://www.limelightstudio.com.au/test.html
    >>
    >> The navigation menu boxes are centered correctly in FireFox, Netscape &
    >> Opera,

    >
    > That looks like a list of links to me. Why aren't they marked up as a
    > list?
    >
    > http://www.alistapart.com/articles/taminglists/


    Thanks Mark, I had given up on marking up as a list as the alignment seemed
    worse off. I'll read up on the link, I'm sure my answer is there.

    > It's not tabular data either. Why is it in a table?
    >
    > http://www.allmyfaqs.com/faq.pl?Tableless_layouts


    I'm aware of the tables vs CSS layout debate and I acknowledge your comment,
    thank you.

    >> Have I used the incorrect style to acheive the centered alignment?

    >
    > Not particularly, though sizing it in px is not a good idea anyway, as
    > the text overflows the boxes when the font size is increased. Much
    > better to size it in em, so that it sizes relative to the font size.
    >
    > At a rough guess, it is the text-align: center; on the table. IE
    > (incorrectly) centres block-level elements as well as inline elements.
    > I'd say that is probably what is causing your problem.


    I thought as much.... Thanks for looking at it Mark, much appreciated.


    --
    Helen, lime, et al.
     
    lime, Feb 25, 2005
    #3
    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. mayur
    Replies:
    1
    Views:
    364
    Brian Henry
    Dec 28, 2003
  2. DK
    Replies:
    11
    Views:
    761
    Travis Newbury
    Jul 6, 2009
  3. David Heinemeier Hansson
    Replies:
    0
    Views:
    148
    David Heinemeier Hansson
    Oct 25, 2004
  4. David Heinemeier Hansson

    [ANN] Rails 0.9.5: A world of fixes and tweaks

    David Heinemeier Hansson, Jan 26, 2005, in forum: Ruby
    Replies:
    0
    Views:
    90
    David Heinemeier Hansson
    Jan 26, 2005
  5. Jason Roelofs
    Replies:
    0
    Views:
    89
    Jason Roelofs
    Jan 11, 2010
Loading...

Share This Page