Forum Moderators: not2easy
The issue: I have a background-image in my floating left nav bar. It shows up in all browsers BUT Safari.
Have I missed something?
Code:
body{
background-color: #ffccff;
background-attachment: fixed;
background-image: url(images/test.gif);
background-repeat: no-repeat;
background-position: left top;
border: thin none;
height: 100%;
width: 100%;
}
.header{
height: auto;
width: 100%
}
.clear{
clear: both;
}
.leftnav{
height: 300px;
width: 150px;
background-image: url(images/leftbar.gif);
float: left;
}
Also, how do I set a Div (or table) to scroll instead of expand vertically? Fixed Heights seem to not wanna work...
#header h1 {
background: url("../images/logo-top.png") center no-repeat;
text-indent: -5000px;
min-width: 179px;
min-height: 32px;
} It works in all browsers, including Safari. I think you are looking for something like this:
.leftnav{
min-height: 300px;
min-width: 150px;
background-image: url(images/leftbar.gif);
float: left;
} Just set 'min-height' and 'min-width' to the dimensions of the image, and it should work.
.leftnav{
min-height: 300px;
min-width: 150px;
background-image: url(images/leftbar.gif);
float: left;
overflow: scroll;
} I believe this is the proper way to do this... though I'm not sure if 'overflow' would require an actual 'height'. I would try out that and 'max-height' and see what happens.
Best wishes!