halfalime
05-22-2008, 10:02 AM
Hi,
I didnt know how to put a title to this but my problem is that i am making a simple css layout and when i put text in my nav bar the spaces between the buttons get bigger....
Heres the code:
body
{
background-color:#dad8d8;
}
#main
{
width:65%;
min-height:550px;
background-color:white;
margin:auto;
}
#header
{
width:100%;
height:100px;
background-image: url(background.gif);
}
#header2
{
width:100%;
height:40px;
background-image: url(background2.gif);
}
#footer
{
width:65%;
height:20px;
background-image:url(background.gif);
margin:auto;
}
#nav
{
width:22%;
min-height:50px;
margin-left:5px;
}
#button
{
width:100%;
height:20px;
background-color:gray;
text-align:center;
margin-top:5px;
}
p.button
{
color: white;
font: arial;
font-family: arial;
font-size:x-small;
padding-top:4px;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<title></title>
</head>
<body>
<div id="main">
<div id="header">
</div>
<div id="header2">
</div>
<div id="nav">
<div id="button"><p class="button">Home</p></div>
<div id="button"><p class="button">About us</p></div>
<div id="button"><p class="button">FAQ</div>
<div id="button"><p class="button">Services</p></div>
<div id="button"><p class="button">Enquiries</p></div>
</div>
</div>
<div id="footer">
</div>
</body>
</html>
Thanks
HalfALime
I didnt know how to put a title to this but my problem is that i am making a simple css layout and when i put text in my nav bar the spaces between the buttons get bigger....
Heres the code:
body
{
background-color:#dad8d8;
}
#main
{
width:65%;
min-height:550px;
background-color:white;
margin:auto;
}
#header
{
width:100%;
height:100px;
background-image: url(background.gif);
}
#header2
{
width:100%;
height:40px;
background-image: url(background2.gif);
}
#footer
{
width:65%;
height:20px;
background-image:url(background.gif);
margin:auto;
}
#nav
{
width:22%;
min-height:50px;
margin-left:5px;
}
#button
{
width:100%;
height:20px;
background-color:gray;
text-align:center;
margin-top:5px;
}
p.button
{
color: white;
font: arial;
font-family: arial;
font-size:x-small;
padding-top:4px;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<title></title>
</head>
<body>
<div id="main">
<div id="header">
</div>
<div id="header2">
</div>
<div id="nav">
<div id="button"><p class="button">Home</p></div>
<div id="button"><p class="button">About us</p></div>
<div id="button"><p class="button">FAQ</div>
<div id="button"><p class="button">Services</p></div>
<div id="button"><p class="button">Enquiries</p></div>
</div>
</div>
<div id="footer">
</div>
</body>
</html>
Thanks
HalfALime