1 reply [Last post]
tru178
Offline
newbie
Last seen: 16 years 50 weeks ago
Timezone: GMT-8
Joined: 2004-03-21
Posts: 1
Points: 0

Hi, i'm new to css and this forum. how can i get ie, mozilla, and opera to "not count" the left and right border as part of the total width of the box, or to get safari and konqueror to "count" the left and right border as part of the total width of the box. i've created a box with 1px left, right borders and safari and konqueror is 2px too wide where ie,mozilla and opera is good.

co2
co2's picture
Offline
Leader
UK
Last seen: 12 years 46 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

box width question.

First and foremost, you should try and work within the box-model rules. If it's not working on some browsers, but in others, this would suggest that perhaps it's the CSS and HTML that's not correct (unless you're using one of the browsers which gets the model wrong).

However, there are hacks to aid you with the various quirks:http://www.quirksmode.org/

I would recommend you let us see your example link prior to using hacks though (hacks are generally for making quirky browsers such as IE5 PC work with certain CSS declarations).

The next sentence is true. The previous sentence is false. Discuss...