I just noticed that IE6 and Firefox render it differently. Found that out the hard way after messing with it trying to make a page look right in both browsers. :frown:
Say, if you declare padding: 20px; in a box with a fixed-width of 500px, Firefox will bump the width of the box to 20 + 500 + 20 = 540px, while IE will render the box with a width of 500px, but the usable area within the box is reduced (20 + 460 + 20 = 500px).
Anyone else noticed this? I had to resort to using "margin" for the elements inside the box and set the padding to 0 to fix this.
Which is supposed to be the "correct" way of rendering it BTW? My money is on Firefox but I wanna hear some the web devs out there.
Say, if you declare padding: 20px; in a box with a fixed-width of 500px, Firefox will bump the width of the box to 20 + 500 + 20 = 540px, while IE will render the box with a width of 500px, but the usable area within the box is reduced (20 + 460 + 20 = 500px).
Anyone else noticed this? I had to resort to using "margin" for the elements inside the box and set the padding to 0 to fix this.
Which is supposed to be the "correct" way of rendering it BTW? My money is on Firefox but I wanna hear some the web devs out there.