Jump to content

Box Model Tweaking Safari 3.0 Beta


snrecords

Recommended Posts

Hey all...I came across an unusual problem.... Not sure if it's a bug or coding.

 

If you view my site in Safari 3.0 Beta windows or mac, the box-sizing:border-box function does not work.  It appears to do absolutely nothing and the page looks as if there is no box-sizing code or that it reads it as box-sizing:content-box.  I need it to use the traditional model without changing the doctype.

 

If you already downloaded Safari 3.0 Beta, please take a look ... www.buzzhawaii.com

 

And here is my CSS code for one div:

div#rightbox{
-moz-box-sizing:border-box; 
box-sizing:border-box;
width: 459px; 
height: 618px; 
margin-left: 4px; 
float: left; 
border: 4px solid; 
border-color: #99CC22;
background-color: #F6F6E8;
}

Link to comment
Share on other sites

Ok.  I tried taking out the code you suggested and as I suspected I ran into the original box model problem with IE and Firefox. 

 

If I take out -moz-box-sizing:border-box; then the borders appear outside the box in firefox and inside in IE. 

 

I've read many times that box-sizing:border-box; is supposed to fix that problem in Safari, which it did with previous browser versions (safari 2), but in the new beta safari, it doesn't work!

 

Anybody help...

 

Link to comment
Share on other sites

the borders appear outside the box in firefox and inside in IE.

 

What version of IE are you talking about? IE6 uses the same box model as FF, IE7, Opera, Safari...and every other browser that is in (noticable) current use. It is the box model recommended by the W3C.

 

If you are worrying about IE5.5 I'd suggest that you don't.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.