SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Table Box Model

  1. #1
    mouse monkey
    Join Date
    Dec 1999
    Location
    UK
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table Box Model

    Hi,

    Does the CSS box model differ for tables from divs etc. ?

    I am using a table (that containt tabular data of cource ) which is formated by CSS. The td's height are set to 25px and it has a border-bottom of 5px. In IE 6 the td's height is 25px plus a 5px border. In Mozilla the td's height is 20px plus a 5px border.

    It seems to be backwards to how IE5 messed up the box model before. Does the box model for tables differ from divs? Which one is right?

    Thanks for any information you can offer.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    The box model should be the same for all elements, whether it's a table, div, span, p, or what have you. If this really is a Mozilla bug, I'd file a report on http://www.mozilla.org/.

    --Vinnie


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •