DanPorter
Jan-02-2006, 04:19 PM
A few days ago I was completely novice to CSS, but I spent some time playing around and got my site (dsporter.smugmug.com) to a place I was comfortable with. My main interest was moving the navigation links on top of my banner image. I got it figured out by using the relative position and moving the links a bit. I also had to use relative position on the rest of the page to avoid having a big gap between the banner and images. The page looks good when I view it on Firefox or IE, but it got messed up when I viewed it on IE on a mac. Is there a better way to accomplish having my navigation links overlap the banner image? How can I avoid having a messy website for mac users? Here's my CSS if it helps and thanks in advance for the great support. I did a lot of research before going with smugmug and these forums have been immensly helpful over the last few days.
#homepage {
position: relative;
bottom: 60px;
}
#journal {
position: relative;
bottom: 60px;
}
#smugmug_small {
position: relative;
bottom: 45px;
}
/*------------- hnav------------*/
#hnav ul {
text-align: center;
padding-left: 0;
/* cancels gap caused by top padding in Opera 7.54 */
margin-left: 0;
color: #FFFFFF;
background-color: none;
width: 350px;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
/* fixes Firefox 0.9.3 */
border: 0px solid black;
line-height: 19px;
z-index: 2;
position: relative;
left: 250px;
bottom: 60px;
}
#hnav ul li {
display: inline;
}
#hnav ul li a {
padding-left: 7px;
padding-right: 7px;
color: #FFFFFF;
text-decoration: none;
/*border-right: 0px solid #FFFFFF;*/
/*border-left: 0px solid #FFFFFF;*/
}
#hnav ul li a:hover {
background: #FFFFFF;
color: #000000;
}
#hnav #active {
/*border-left: 0px solid #F2EEEC;*/
}
sorry for the long post. I hope it's not bad etiquette.
#homepage {
position: relative;
bottom: 60px;
}
#journal {
position: relative;
bottom: 60px;
}
#smugmug_small {
position: relative;
bottom: 45px;
}
/*------------- hnav------------*/
#hnav ul {
text-align: center;
padding-left: 0;
/* cancels gap caused by top padding in Opera 7.54 */
margin-left: 0;
color: #FFFFFF;
background-color: none;
width: 350px;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
/* fixes Firefox 0.9.3 */
border: 0px solid black;
line-height: 19px;
z-index: 2;
position: relative;
left: 250px;
bottom: 60px;
}
#hnav ul li {
display: inline;
}
#hnav ul li a {
padding-left: 7px;
padding-right: 7px;
color: #FFFFFF;
text-decoration: none;
/*border-right: 0px solid #FFFFFF;*/
/*border-left: 0px solid #FFFFFF;*/
}
#hnav ul li a:hover {
background: #FFFFFF;
color: #000000;
}
#hnav #active {
/*border-left: 0px solid #F2EEEC;*/
}
sorry for the long post. I hope it's not bad etiquette.