Hello,
I'm almost finished with this website Sad Sparrow, but I've got two small problems.
- In safari, the navigation buttons don't work properly (they are rollovers buttons, you can see them in working order in Firefox, Opera and Internet Explorer).
- In IE, the content div is pushed down. I can't see why since the divs containing the buttons are floated, and I have checked it with debugging colors and none of the divs are on top of the content. I have tried removing 3px everywhere, to no effect.
I'd really appreciate any help, I'm desperate and these are the only things missing before I can publish the site.
Here is my html as well as my css:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sad Sparrow</title>
<link href="main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="flexcroll.js"></script>
</head>
<body>
<div id="container">
<div class="brushbtn"><a href="brushes.html"><img src="images/nav/brushesbutton.png" /></a></div>
<div class="pattbtn"><a href="drawings.html"><img src="images/nav/pattbtn.png" /></a></div>
<div class="aboutbtn"><a href="about.html"><img src="images/nav/aboutbtn.png" /></a></div>
<div class="artbtn"><a href="paintings.html"><img src="images/nav/artbtn.png" /></a></div>
<div class="homebtn"><a href="index.html"><img src="images/nav/homebtn.png"/></a></div>
<div id="content" class="flexcroll">
<div id="header">
<img src="images/layout/headerhome.png" /></div>
<p>
Welcome to sadsparrow.com!<br />
<br />
Here you'll find brushes and vector packs, as well as my artwork.<br /><br />
To navigate, use the stuff over there --------------><br /><br />
If you'd like contact me for Illustration or web design services, <a href="mailto:contact@sadsparrow.com">click here.</a></p>
<p class="line">
------------------------------------------------------------------<br />
News and Tidbits</p><p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
<br />
Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio.</p>
</div>
</div>
</body>
</html>
@charset "UTF-8";
/* CSS Document */
body {
padding:35px;
background-color:#827E55;
text-align:center;
}
#container {
background-image:url(images/layout/background.jpg);
background-position:center;
background-repeat:no-repeat;
text-align:left;
padding:22px;
width:760px;
height:560px;
position: inherit;
margin-left:auto;
margin-right:auto;
}
#content {
margin-top: 15px;
padding-top:0px;
text-align:left;
width: 433px;
height: 530px;
background-image: url(images/layout/azul.png);
background-repeat:no-repeat;
background-position:top;
overflow-y:scroll;
overflow-x:hidden;
position:relative;
z-index:2;
}
#header {
margin: 0;
padding:0;
width: 438px;
height: 70 px;
text-align:left;
}
p{
margin: 10px 30px;
text-align:justify;
font-family:Times New Roman, Times, serif;
font-size:13px;
color: #def3f6;
}
.brushbtn{
float:right;
z-index:1;
position: relative;
white-space: nowrap;
display: block;
width: 241px;
height: 79px;
margin-top: 52px;
margin-right: 42px;
padding: 0;
}
.brushbtn a:hover
{
display: block;
color: #000000;
font-size: 11px;
width: 241px;
height: 79px;
display: block;
background: url(images/nav/brushesbutton2.png) no-repeat;
}
.brushbtn img
{
width: 241px;
height: 79px;
border: 0;
}
* html a:hover
{
visibility:visible
}
.brushbtn a:hover img
{
visibility:hidden
}
.brushbtn span
{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.pattbtn{
float:right;
z-index:1;
position: relative;
white-space: nowrap;
display: block;
width: 241px;
height: 71px;
margin-top:-25px;
margin-left: 490px;
margin-right: 35px;
padding: 0;
}
.pattbtn a:hover
{
display: block;
color: #000000;
font-size: 11px;
width: 241px;
height: 71px;
display: block;
background: url(images/nav/pattbtn2.png) no-repeat;
}
.pattbtn img
{
width: 241px;
height: 71px;
border: 0;
}
.pattbtn a:hover img
{
visibility:hidden
}
.pattbtn span
{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.aboutbtn{
float:right;
z-index:1;
position: relative;
white-space: nowrap;
display: block;
width: 120px;
height: 71px;
margin-top:-10px;
margin-right: 6px;
padding: 0;
}
.aboutbtn a:hover
{
display: block;
color: #000000;
font-size: 11px;
width: 120px;
height: 71px;
display: block;
background: url(images/nav/aboutbtn2.png) no-repeat;
}
.aboutbtn img
{
width: 120px;
height: 71px;
border: 0;
}
.aboutbtn a:hover img
{
visibility:hidden
}
.aboutbtn span
{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.artbtn{
float:right;
z-index:1;
position: relative;
white-space: nowrap;
display: block;
width: 89px;
height: 166px;
margin-top:-50px;
margin-left: 490px;
margin-right: 140px;
padding: 0;
}
.artbtn a:hover
{
display: block;
color: #000000;
font-size: 11px;
width: 89px;
height: 166px;display: block;
background: url(images/nav/artbtn2.png) no-repeat;
}
.artbtn img
{
width: 89px;
height: 166px;
border: 0;
}
.artbtn a:hover img
{
visibility:hidden
}
.artbtn span
{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.homebtn{
float:right;
z-index:1;
position: relative;
white-space: nowrap;
display: block;
width: 89px;
height: 166px;
margin-top:-10px;
margin-right:220px;
padding: 0;
}
.homebtn a:hover
{
display: block;
color: #000000;
font-size: 11px;
width: 89px;
height: 166px;display: block;
background: url(images/nav/homebtn2.png) no-repeat;
}
.homebtn img
{
width: 89px;
height: 166px;
border: 0;
}
.homebtn a:hover img
{
visibility:hidden
}
.homebtn span
{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.scrollgeneric {
line-height: 1px;
font-size: 1px;
position: absolute;
top: 0; left: 0;
}
.vscrollerbase {
width: 7px;
background-image:url(images/layout/basebarra.png);
background-repeat:repeat-y;
}
.vscrollerbar {
width: 7px;
background-color:#ffffce;
border: 2px;
}
.hscrollerbase {
height: 0px;
background-color: white;
}
.hscrollerbar {
height: 0px;
background-color: black;
}
.scrollerjogbox {
width: 0px;
height: 6px;
top: auto; left: auto;
bottom: 0px; right: 0px;
background-color:#def3f6;
}
.line {
padding: 0px;
margin: 0px;
text-align:center;
}
a{
font-weight: 900;
color:#def3f6;
text-decoration:none;
border:0;
padding:0px;
margin:0px;
}
a:hover {
color:#ffffce;
text-decoration:none;
}
a img {
border: 2px solid #def3f6;
}
a:hover img {
border: 2px solid #ffffce;
}
.brushimg{
text-align:center;
line-height: 25px;
margin: 5px;
padding: 0px;
}
.preview {
text-align:left;
}
.thumbs{
margin:5px;
width:52px;
height:52px;
}
Thanks again!!