croatiankid
11-04-2006, 04:18 PM
I just don't get it. Could you please take a look at here (http://www.croatiankid.com/test/) and tell me what to add to my css where? Here's the css:body
{
margin:20px;
padding:0px;
text-align: center; /* gay IE5, very gay... */
font-family:Arial, Helvetica, sans-serif;
background: #767676;
}
#main
{
text-align:left; /* fixing IE5's mess */
width:770px;
margin:0px auto;
background: url(images/bg.gif) repeat-y 50% 0;
}
img
{border:none; padding:0px; margin:0px;}
h1
{
color:#ffa500;
font-size:54px;
position:relative; left:45px; top:55px;
margin:0px;
}
h2
{
color:#666666;
margin:0px;
font-size:24px;
position:relative; left:45px;
margin-top:65px;
}
#content
{
font-size:17px;
float:left;
padding:30px 50px 20px 30px;
background:#999933;
width:472px;
/*990*/
}
#left
{
/*1040*/
width:218px;
float:left;
background:#b97040;
}
p
{margin:0px;margin-bottom:22px; padding:0px; color:#000000; font-size:18px; text-align:justify;}
h3
{
font-size:23px;
margin:0px 0px 22px 0px;
color:#dddddd;
background:#003366;
display:inline;
}
h1,h2,h3
{
cursor:default;
}
#footer
{
border: 2px inset #FF9900;
border-top:none;
background:#003366;
font-size:14px;
padding: 0px 10px;
text-align:center;
color:white;
}
#header
{
height:200px;
background:url(images/header.jpg) no-repeat top;
text-align:center;
}
a:link
{color:#CCFFFF; text-decoration:none;}
a:visited
{color:#CCFFFF; text-decoration:none;}
a:hover
{color:#aaFFFF; text-decoration:none;}
a:active
{color:#CCFFFF; text-decoration:none;}
.contact {margin:3px 0px; padding:3px 0px;}
textarea {
font-family: Verdana, Arial;
font-size: 12px;
color: #000000;
width: 300px;
background-color: #FFFFCC;
border: 2px inset #CCCCCC;
overflow:auto;
}
.input
{
border: 2px inset #CCCCCC;
background-color: #FFFFCC;
font-family: Verdana, Arial;
font-size: 12px;
}
.submit{font-size:14px;}
the faux columns part is in red. so what's the problem now (in non-IE browsers)? i understand i need to clear my floats (which i don't get). Also, I read that paddings could be a problem, which I have (paddings). thanks
{
margin:20px;
padding:0px;
text-align: center; /* gay IE5, very gay... */
font-family:Arial, Helvetica, sans-serif;
background: #767676;
}
#main
{
text-align:left; /* fixing IE5's mess */
width:770px;
margin:0px auto;
background: url(images/bg.gif) repeat-y 50% 0;
}
img
{border:none; padding:0px; margin:0px;}
h1
{
color:#ffa500;
font-size:54px;
position:relative; left:45px; top:55px;
margin:0px;
}
h2
{
color:#666666;
margin:0px;
font-size:24px;
position:relative; left:45px;
margin-top:65px;
}
#content
{
font-size:17px;
float:left;
padding:30px 50px 20px 30px;
background:#999933;
width:472px;
/*990*/
}
#left
{
/*1040*/
width:218px;
float:left;
background:#b97040;
}
p
{margin:0px;margin-bottom:22px; padding:0px; color:#000000; font-size:18px; text-align:justify;}
h3
{
font-size:23px;
margin:0px 0px 22px 0px;
color:#dddddd;
background:#003366;
display:inline;
}
h1,h2,h3
{
cursor:default;
}
#footer
{
border: 2px inset #FF9900;
border-top:none;
background:#003366;
font-size:14px;
padding: 0px 10px;
text-align:center;
color:white;
}
#header
{
height:200px;
background:url(images/header.jpg) no-repeat top;
text-align:center;
}
a:link
{color:#CCFFFF; text-decoration:none;}
a:visited
{color:#CCFFFF; text-decoration:none;}
a:hover
{color:#aaFFFF; text-decoration:none;}
a:active
{color:#CCFFFF; text-decoration:none;}
.contact {margin:3px 0px; padding:3px 0px;}
textarea {
font-family: Verdana, Arial;
font-size: 12px;
color: #000000;
width: 300px;
background-color: #FFFFCC;
border: 2px inset #CCCCCC;
overflow:auto;
}
.input
{
border: 2px inset #CCCCCC;
background-color: #FFFFCC;
font-family: Verdana, Arial;
font-size: 12px;
}
.submit{font-size:14px;}
the faux columns part is in red. so what's the problem now (in non-IE browsers)? i understand i need to clear my floats (which i don't get). Also, I read that paddings could be a problem, which I have (paddings). thanks