I’ve never had this problem in the numerous websites I’ve coded. But for some reason (I’m sure I’m making a mistake somewhere) Firefox is not recognizing the “width” and “height” attributes of certain elements… And Internet Explorer is. This is a huge slap in my face because I hate IE and am programming a site for Firefox and frankly don’t care what it looks like in IE. (It’s my personal site, and if it’s not as pretty or slightly screwed up in IE, all the more reason to get Firefox… But it’s backfiring and working perfectly in IE and looking like crap in Firefox.)
I normally wouldn’t just load the first post with code, but I don’t understand what I’m doing wrong here. So please, let me know! (I would just link you to my site, but I don’t have a host.)
style.css
[code]body {
background-color : #090909;
background-image : url(../img/background.jpg);
background-repeat : no-repeat;
margin : 0;
padding : 0;
}
#hopper {
margin : 0;
width : 972px;
clear: both;
}
#mNav {
width : 255px;
float : left;
margin-top : 185px;
}
a.mlink:link, a.mlink:visited {
width: 133px;
height: 28px;
background-color: transparent;
background-image: none;
padding-left: 15px;
margin-left: 97px;
font: bold 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #e6f0f2;
text-decoration: none;
line-height: 30px;
}
a.mlink:hover, a.mlink:active {
width: 133px;
height: 28px;
background-color: transparent;
background-image: url(../img/menu_bg.jpg);
padding-left: 15px;
margin-left: 97px;
font: bold 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial, Serif;
color: #FFF;
text-decoration: none;
line-height: 30px;
}
#main {
margin: 0;
padding-top: 29px;
width: 717px;
float: left;
background-color: #FFF;
font: normal 11px/15px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #222222;
}
.copy {
position: relative;
left: 553px;
margin: 0;
padding: 7px;
width: 150px;
background-color: #090909;
font: normal 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #FFF;
text-align: center;
}
a.top:link, a.top:visited, a.top:active {
font: bold 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #fff;
text-decoration: none;
}
a.top:hover {
font: bold 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #FFF;
text-decoration: none;
border-bottom: 1px #4C7F90 solid;
}
h1.title {
padding-left: 18px;
padding-bottom: 33px;
font: bold 11px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #222222;
}
h1 {
padding-left: 22px;
padding-bottom: 0;
margin-bottom: 0;
font: bold 18px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
letter-spacing: -1px;
line-height: 0;
color: #222222;
}
h1.under {
padding-left: 22px;
margin: 0;
font: normal 9.5px Tahoma, Verdana, Arial;
color: #676767;
letter-spacing: 0;
}
p {
padding-left: 22px;
padding-right: 171px;
}
.blogHd {
bckground-color: #090909;
width: 537px;
height: 47px;
font: bold 18px ‘Trebuchet MS’, Tahoma, Verdana, Arial;
color: #FFF;
letter-spacing : -1px;
line-height : 0;
padding-left : 10px;
padding-bottom : 0;
margin-bottom : 0;
}
index.html
[code]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”content-type” content=”text/html;charset=iso-8859-1″>
<title>my site</title>
<link rel=”stylesheet” type=”text/css” href=”./css/style.css”>
</head>
<body>
<div id=”hopper”>
<!– ———————— Menu — –>
<div id=”mNav”>
<a href=”about.php” class=”mlink” style=”width: 133px; height: 28px;”>ABOUT</a><br />
<a href=”galleries.php” class=”mlink”>GALLERIES</a><br />
<a href=”print.php” class=”mlink”>PRINT/GEAR</a><br /><br />
<a href=”home.php” class=”mlink”>HOME</a><br />
</div> <!– Close Menu div –>
<!– ———————— Main — –>
<div id=”main”>
<h1 class=”title”>MY Site</h1>
<p>
<h1>Welcome to the Gallery of Art and Light</h1><br /><h1 class=”under”>please enjoy! — baker</h1>
</p>
<p style=”background-color: #090909; width: 537px; height: 47px; display: block;”>Welcome</p>
<p>
Hello there!
</p>
<div class=”copy”>
©2007 ryan baker <a href=”#top” class=”top”>TOP</a>
</div>
</div> <!– Close Main div –>
</div><!– Close Hopper div –>
</body>
</html>
It’s not recognizing the width and height attributes of the [B]a.mLink[B]blogHd
Where am I going wrong?