Safari breaking with multiple column layout!
Posted: 02 February 2007 03:35 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2007-02-02

Hey Forum-  Question for you.

I’m developing a muti-column layout and for some reason Safari 2 breaks (text no longer wraps in left sidebar) when using CSS.  No issues with any other browser on any platform (minus IE5 MAC/Windows which we all know bites).

Please take a look at this very basic example:

http://www.work-ed.com/multicolumn/column_study_withoutpadding.html

Any suggestions would be greatly appreciated! THANKS!

Here’s the code:

<html>
<
head>
<
title>HELP!</title>
<
style type="text/css">




#wrapper {
    
height1000px;
    
width800px;
}

#sidebar {
    
background-color#ECECEC;
    
height100px;
    
width250px;
    
margin0px;
    
padding10px;
    
border0px;
    
positionabsolute;
    
max-width250px;
}

#frame_nav {
    
positionabsolute;
    
background-color#CCC;
    
height900px;
    
width250px;
    
margin-top100px;
    
padding10px;
    
border0px;
    
max-width250px;
}

#content {
    
positionrelative;
    
floatright;
    
background-color#999;
    
margin0px;
    
height1000px;
    
width550px;
    
padding10px;
    
border0px;
    
max-width550px;
}


/* this allows zilla to render boxs like IE. (padding applied to inside of box)*/
div {
    
-moz-box-sizingborder-box;
    
box-sizingborder-box;
    
margin0;
    
padding0;
}
</style>

</
head>
<
body>

<
div id="wrapper">
  <
div id="sidebar">"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
</div
  <!--
sidebarLeft-->
  <
div id="frame_nav">"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
</div
  <!--
frame_nav-->
  <
div id="content">"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
</div>
</
div> <!--wrapper-->

</
body>
</
html
Profile
 
 
Posted: 05 March 2007 04:39 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2007-02-02

If anyone is interested, I fixed the issue by wrapping each of the frames in seperate div tags.  This allows the “blank” div tag to controll the padding and border for each of my frames.  Hence fixing the wrap issue for Safari and every other browser.  Everywhere /* this hack forces Safari to play nice (box-model padding)*/ is used, is the fix.

body {
    background
-color#FFFFFF;
    
background-image:  url(/rotate/bg_images/rotate.php);
    
background-repeatrepeat;
    
margin-top100px;
    
margin-left30px;

}

#logo {
    
margin0px;
    
padding0px;
    
border0px;
    
spacing0px;
    
positionabsolute;
    
visibilityvisible;
    
z-index10;
    
left70px;
    
top7px;
    
}

#header {
    
background-color#999;
    
margin0px;
    
height100px;
    
width800px;
    
padding0px;
    
border0px;
    
filteralpha(opacity=60); 
    
filterprogid:DXImageTransform.Microsoft.Alpha(opacity=60); 
    -
moz-opacity0.60;
    
opacity0.6;
}

#wrapper {
    
height1000px;
    
width800px;
}

/* this hack forces Safari to play nice (box-model padding)*/
#wrapper div {
    
padding0px;
    
border0px;
}


/* not used */
#sidebarRight {
    
floatright;
    
background-color#CECECE;
    
height800px;
    
width100px;
    
margin0px;
    
padding0px;
    
border0px;
    
positionrelative;
    
}

#sidebar {
    
background-color#CECECE;
    
height100px;
    
width250px;
    
margin0px;
    
positionabsolute;
    
}

/* this hack forces Safari to play nice (box-model padding)*/
#sidebar div {
    
padding0px;
    
border0px;
}


#frame_nav {
    
positionabsolute;
    
height900px;
    
width250px;
    
margin-top100px;

}

/* this hack forces Safari to play nice (box-model padding)*/
#frame_nav div {
    
padding0px;
    
border0px;

}

#content {
    
floatright;
    
margin0px;
    
height1000px;
    
width550px;
    
border0px;
    
background-color#999;
    
positionrelative;

}

/* this hack forces Safari to play nice (box-model padding)*/
#content div {
    
padding10px;
    
border0px;

}


#footer {
    
background-color#999;
    
margin0px;
    
height50px;
    
width800px;
    
padding0px;
    
border0px;
    
filteralpha(opacity=60); 
    
filterprogid:DXImageTransform.Microsoft.Alpha(opacity=60); 
    -
moz-opacity0.60;
    
opacity0.6;

}

div {
    
-moz-box-sizingborder-box;
    
box-sizingborder-box;
    
margin0;
    
padding0;
Profile