Holley146
02-26-2011, 09:53 AM
Ok i may be coding this wrong i just started useing CSS about 5 or so days ago but my page wont let me line up 2 images next together
style.css codebody {
background-color: black;
background-image: url(images/bg.png);
background-attachment: fixed;
background-repeat: repeat-x;
}
#banner {
width: 980px;
height: 190px;
background: url(images/banner.gif) no-repeat;
}
#main{
width: 1055px;
height: 800px;
background: url(images/main.gif) no-repeat;
background-position: 305px 0px;
}
.news{
font-size: 25px;
width:600px;
height:50px;
padding-left: 200px;
padding-top: 10px;
}
.title2 {
font-size: 14px;
letter-spacing: 3px;
color: #FFFFFF;
text-transform: uppercase;
text-decoration: underline;
}
#login{
width: 294px;
height: 190px;
background: url(images/login.png) no-repeat;
position:relative;
}
.login {
font-size: 4px;
color: #FFFFFF;
text-transform: uppercase;
padding-left: 8px;
}
.footer {
height: 21px;
background-image: url(images/copyright.gif);
background-repeat: repeat-x;
font-family: "Calibri", Verdana, sans-serif;
font-size: 12px;
color: #666666;
text-align: center;
}
index.php(it hs some html code to )<html>
<head>
<link rel="shortcut icon" href="favicon.ico" >
<link rel=stylesheet type="text/css" href="style.css">
<title>NGZ Workshop</title>
</head>
<body>
<?php
include('include/config.php');
?>
<script type="text/javascript" src="js/mouesover.js">
</script>
<center>
<div id="banner"></div>
<?php include("page/navigation.php"); ?>
<div id="login">
<div class="login">
<?php include("login.php"); ?>
</div>
</div>
<div id="main">
<div class="news">
<?php include("main.php"); ?>
</div>
</div>
</html>
style.css codebody {
background-color: black;
background-image: url(images/bg.png);
background-attachment: fixed;
background-repeat: repeat-x;
}
#banner {
width: 980px;
height: 190px;
background: url(images/banner.gif) no-repeat;
}
#main{
width: 1055px;
height: 800px;
background: url(images/main.gif) no-repeat;
background-position: 305px 0px;
}
.news{
font-size: 25px;
width:600px;
height:50px;
padding-left: 200px;
padding-top: 10px;
}
.title2 {
font-size: 14px;
letter-spacing: 3px;
color: #FFFFFF;
text-transform: uppercase;
text-decoration: underline;
}
#login{
width: 294px;
height: 190px;
background: url(images/login.png) no-repeat;
position:relative;
}
.login {
font-size: 4px;
color: #FFFFFF;
text-transform: uppercase;
padding-left: 8px;
}
.footer {
height: 21px;
background-image: url(images/copyright.gif);
background-repeat: repeat-x;
font-family: "Calibri", Verdana, sans-serif;
font-size: 12px;
color: #666666;
text-align: center;
}
index.php(it hs some html code to )<html>
<head>
<link rel="shortcut icon" href="favicon.ico" >
<link rel=stylesheet type="text/css" href="style.css">
<title>NGZ Workshop</title>
</head>
<body>
<?php
include('include/config.php');
?>
<script type="text/javascript" src="js/mouesover.js">
</script>
<center>
<div id="banner"></div>
<?php include("page/navigation.php"); ?>
<div id="login">
<div class="login">
<?php include("login.php"); ?>
</div>
</div>
<div id="main">
<div class="news">
<?php include("main.php"); ?>
</div>
</div>
</html>