I could be missing some coding, but here is what I mean:
Messed up one
Perfectly fine one
Basically, on the messed up web page, my links don't align like the other pages. My coding for the MESSED UP ONE is:
<div class="header"><div style="margin-left:200px;"> <img src="images/logo_2.jpg" width="600" style="padding-top:12.5px;" />
</div>
</div>
<div>
<p><img src="images/1st-link.jpg" onmouseover="this.src='images/1st-link-roll.jpg'" onmouseout="this.src='images/1st-link.jpg'" />
<img src="images/2nd-link.jpg" onmouseover="this.src='images/2nd-link-roll.jpg'" onmouseout="this.src='images/2nd-link.jpg'" />
<img src="images/3rd-link.jpg" onmouseover="this.src='images/3rd-link-roll.jpg'" onmouseout="this.src='images/3rd-link.jpg'" />
<img src="images/4th-link.jpg" onmouseover="this.src='images/4th-link-roll.jpg'" onmouseout="this.src='images/4th-link.jpg'" />
</p>
<p> </p>
</div>
<p> </p>
<p> </p>
<img id="image" src="images/14_Seal2.jpg" /> <!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="main="Main" content="Content"" --><p id="main">Main Content</p>
<div id="footer"><p><form action="" method="post" id="form-radio">
<p>
<label>
<input type="radio" name="Website Feedback" value="radio" id="WebsiteFeedback_0" />
Yes</label>
<br />
<label>
<input type="radio" name="Website Feedback" value="radio" id="WebsiteFeedback_1" />
No</label>
<br />
</p>
</form></p><p id="pfoot" style="vertical-align:bottom;">Teenspace and Teens For Antartica Preservation Inc. <br />Web Desinger: Mathew Crogan</p></div>
The coding for the PERFECTLY FINE page is:
<div class="header"><div style="margin-left:200px;"> <img src="images/logo_2.jpg" width="600" style="padding-top:12.5px;" />
</div>
<div>
<p><img src="images/1st-link.jpg" onmouseover="this.src='images/1st-link-roll.jpg'" onmouseout="this.src='images/1st-link.jpg'" />
<img src="images/2nd-link.jpg" onmouseover="this.src='images/2nd-link-roll.jpg'" onmouseout="this.src='images/2nd-link.jpg'" />
<img src="images/3rd-link.jpg" onmouseover="this.src='images/3rd-link-roll.jpg'" onmouseout="this.src='images/3rd-link.jpg'" />
<img src="images/4th-link.jpg" onmouseover="this.src='images/4th-link-roll.jpg'" onmouseout="this.src='images/4th-link.jpg'" />
</p>
<p> </p>
</div>
<p> </p>
<p> </p>
<img src="images/14_Teens.jpg" id="image"/><!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="main="Main" content="Content"" --><p id="main">Main Content</p>
<div id="footer"><p id="pfoot" style="vertical-align:bottom;">Teenspace and Teens For Antartica Preservation Inc. <br />Web Desinger: Mathew Crogan</p></div>
And lastly, the CSS STYLE SHEET for BOTH pages is:
#charset "utf-8";
/* CSS Document */
.header
{
height: 150px;
width: 100%;
margin-left: 25px;
margin-right: 50px;
position:relative;
left:0px;
top:0px;
}
html
{
width: 1000px;
height: 650px;
background-color:#D7D7FF;
margin:0px;
padding:0px;
}
#rollover
{
display:block;
width:120px;
border:1px solid #000;
float:left;
margin-top:30px;
}
#firstlink
{
display:block;
width:120px;
border:1px solid #000;
float:left;
margin-top:30px;
margin-left:265px;
}
a img
{
border:none;
}
#image
{
height:230px;
width:300px;
float:left;
border: 3px solid #B5B5B5;
margin-left:150px;
margin-top:10px;
border-radius:25px;
box-shadow:10px 10px 6px #A3A3A3;
}
#main
{
height:250px;
width:450px;
border:3px solid #B5B5B5;
margin-left:500px;
margin-top:15px;
border-radius:25px;
box-shadow:10px 10px 6px #A3A3A3;
padding-left:10px;
padding-top: 6px;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight:400;
background-color:#FFF;
}
#footer
{
height:100px;
bottom:0px;
text-align:center;
width:100%;
padding-top:100px;
padding-left:25px;
}
#pfoot
{
margin-left:50px;
}
#form-radio
{
float:left;
}
Any help would be MUCH appreciated, Thanks
Related
I'm having a couple of bugs with my layout and was wondering if anyone could help me out. I need to have the white space removed above the nav bar and below the footer. Secondly, I'd like to have all of the footer elements on the same line, instead of being slightly staggered. I've attached a picture of the site, as well as the HTML and CSS that goes with it. Thanks in advance!
HTML:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>21st Century Dad</title>
<link type="text/css" rel="stylesheet" href="css/reset.css" />
<link type="text/css" rel="stylesheet" href="styles.css" />
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#26ADE4; float:right; font:14px 'Kanit',Helvetica,Arial,sans-serif; margin-right: 20px; margin-top: 20px; text-align:center; padding:10px; border-radius:20px;}
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
</head>
<body>
<header>
<div id="header-content">
<img src="../website/images/logo-big.png" alt="21st Century Dad" height="110" style="margin-left:20px; margin-top:20px;" />
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//fb.us15.list-manage.com/subscribe/post?u=48be460d4492dcbdd2828666e&id=f7d2ed069d" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
Sign up for our newsletter!
<div class="indicates-required"><span class="asterisk"></span></div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_48be460d4492dcbdd2828666e_f7d2ed069d" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button" style="background-color:#D1E751; font:14px 'Kanit',Helvetica,Arial,sans-serif; margin-top:4px; border-radius:5px; border-color:#D1E751;"></div>
</div>
</form>
</div>
<!--End mc_embed_signup-->
<nav>
<ul>
<li>About</li>
<li>DIY Projects</li>
<li>Dad Tech</li>
<li>Kid Stuff</li>
<li>Ask a Dad</li>
<li>Dad Jokes</li>
</ul>
</nav>
</div>
</header>
<div id="wrapper">
<main>
<div class = "container">
<div class = "blocks">
<h1>What's New with Dad?</h1>
<img src="../website/images/whatsnew.png" alt="About Me Picture" style="border:1px solid #000;">
</div>
<div class = "blocks">
<h1>DIY Project of the Week</h1>
<img src="../website/images/diyproject.jpg" alt="DIY Project Picture" style="border:1px solid #000;">
</div>
<div class = "blocks">
<h1>Dad Gadget of the Week</h1>
<img src="../website/images/dadgadget.jpg" alt="Dad Gadget of the Week Picture" style="border:1px solid #000;">
</div>
<div class = "blocks">
<h1>Activity / Meal of the Week</h1>
<img src="../website/images/dadactivity.jpg" alt="Kid Activity & Meal of the Week" style="border:1px solid #000;">
</div>
<div class = "blocks">
<h1>Dad Q & A of the Week</h1>
<img src="../website/images/askadad.png" alt="Dad Q & A of the Week" style="border:1px solid #000;">
</div>
<div class = "blocks">
<h1>Dad Joke of the Week</h1>
<img src="../website/images/dadjokes.jpg" alt="Dad Joke of the Week" style="border:1px solid #000;">
</div>
</div><!-- end container -->
</main>
<footer>
<div id="footer">
<p class="left">
21stcenturydad#gmail.com
<p class="right">
<a href="https://www.facebook.com/">
<img src="../website/images/Facebook.png" alt="Facebook Logo"/></a>
<a href="https://www.snapchat.com/">
<img src="../website/images/Snapchat.png" alt="Snapchat Logo"/></a>
<a href="https://www.instagram.com/">
<img src="../website/images/Instagram.png" alt="Instagram Logo"/></a>
<p class="centered">
© Copyright 2017 21st Century Dad
</div>
</footer>
</div>
</body>
</html>
CSS:
#charset "UTF-8";
/* CSS Document */
#import url('https://fonts.googleapis.com/css?family=Kanit:200,300,500');
body {
background-color: #FFF;
background-image:url(../website/images/background.png);
font-size: 13px;
font-family: 'Kanit', sans-serif;
font-weight: 200;
color: #363636;
}
p {
line-height: 140%;
}
header {
background-color: #D1E751;
width: 960px;
z-index:1000;
margin-right:auto;
margin-left:auto;
}
#header-content {
width: 960px;
margin-left: auto;
margin-right: auto;
height: 130px;
position:relative;
left:0px;
top:0px;
}
nav {
background-color: #26ADE4;
color: #fff;
width: 100%;
text-align: center;
font-size: 16px;
font-weight:bold;
}
nav ul {
display: block;
padding:14px 0 14px;
}
nav li {
display: inline-block;
}
nav a {
padding: 5px 30px 5px;
}
nav a:link {
color: #fff;
text-decoration: none;
}
nav a:hover {
background-color: #D1E751;
color: #FFF;
}
nav a:visited{color:#FFF;}
#wrapper {
width: 960px;
margin-left: auto;
margin-right: auto;
background-color: #fff;
overflow: hidden;
padding-top:60px;
}
.container{width:960px;
margin-left:auto;
margin-right:auto;
text-align:center;}
.blocks{display:inline-block;
width:300px;
padding-left:5px;
padding-right:5px;
}
h1 {
font-size: 20px;
color: #26ADE4;
font-weight: 500;
margin-bottom: 2px;
}
h2 {
font-weight:500;
font-size: 60px;
color: #fff;
position:absolute;
left:-2px;
bottom:-9px;
}
footer {
background-color: #D1E751;
color: #fff;
font-size: 10px;
padding: 12px;
font-weight:bold;
clear: both;
}
.left{text-align:left;
font-size:14px;
float:left;
padding-top:8px;
padding-bottom:8px;
}
.right{float:right;
text-align:right;
}
.centered{text-align:center;
font-size:14px;
padding-top:8px;
padding-bottom:8px;
max-width:300px;
margin-left:auto;
margin-right:auto;}
Screenshot
take out margin:auto to the body to get rid of surrounding whitespace
For a simple footer, you can position the element fixed to the screen
For elements in the footer, You can use a display flex property on the div with id footer
CSS rules below and pen is here
body {
margin: auto;
}
.left,
right,
.centered {
margin-left: 50px;
margin-right: 50px;
margin-top: 0;
}
footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
}
My Divs are aligned perfectly. I am trying to add an image in the center div but as soon as I add the image the divs disappear and the image is not showing.
I am having the issue with adding the image, can someone please assist. Why is my image not showing whats wrong with my code?
<style>
.div_parent{
display:inline;
background-image: url('../images/image.jpg') top center no-repeat;"
}
.div_center {
width:300px;
float:left;
border-color:black;
border-style:solid;
border-width:3px;
height :700px
}
.div_right
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
.div_left
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
</style>
<div class="div_parent">
<div class="div_left">
<br /><br /><br /><br /><br /><br />
<FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG>Welcome to the Reporting Portal! </STRONG> </font><br />
<br />
<FONT size="2" style="font-family:sans-serif; text-align: left;">
Reports on this site are available as view-only or as an Excel download. </font>
</div>
<div class="div_center">
</div>
<div class="div_right">
<br /><br /><br /><br /><br /><br />
<FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG> We're Here to Help! </STRONG> </font><br /><br />
<FONT size="2" style="font-family:sans-serif; text-align:left;">
We're friendly and available to chat. Reach out to us anytime and we'll happily answer your questions.</br><br />
Supervisors should submit requests including specific fields and search criteria to us at Report Manager</a></font>
</div>
</div>
Have you tried something like this out?
.container {
width: 100%;
height: 50px;
display: inline-block;
}
.element__left,
.element__right,
.element__center {
height: 50px;
}
.element__left, .element__right {
width: 25%;
float: left;
background-color: grey;
}
.element__center {
width: 50%;
float: left;
background-color: green;
}
<div class="container">
<div class="element__left">
<div class="element__center">
<div class="element__right">
</div>
.divOuter{
display:inline;
text-align:center;
}
.divInner1{
border: 1px solid;
float:left;
width:150px;
height:150px;
margin-left:3px;
margin-right:3px;
}
.divInner2{
border: 1px solid;
float:left;
width:250px;
height:150px;
margin-left:3px;
margin-right:3px;
}
.divInner3{
border: 1px solid;
float:left;
width:150px;
height:150px;
margin-left:3px;
margin-right:3px;
}
<body>
<div class='divOuter'>
<div class='divInner1'>First DIV</div>
<div class='divInner2'>Second DIV</div>
<div class='divInner3'>Third DIV</div>
</div>
</body>
Lets try following way:
<!DOCTYPE html>
<html class="not-ie" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>aligning 3 divs with different widthst</title>
<style type="text/css">
* { padding:0; margin:0;}
body { font-family:Arial, Helvetica, sans-serif; color:#fff; font- size:16px;}
.div_parent { position:relative; width:100%; height:300px; overflow:auto; line-height:300px; text-align:center;}
.div_left { position:absolute; left:0; top:0; height:100%; background-color:#900; width:150px;}
.div_middle { position:absolute; left:150px; right:150px; top:0; height:100%; overflow:auto; background-color:#00F;}
.div_right { position:absolute; right:0; top:0; height:100%; background-color:#900; width:150px;}
</style>
</head>
<body>
<div class="div_parent">
<div class="div_left">width: 100px;</div>
<div class="div_middle">width: screen - 200px;</div>
<div class="div_right">width: 100px;</div>
</div>
</body>
</html>
Am working on making a copy of the BBC site and want to make two horizontal bars (part of the header) butt up against each other. Right now, there is a space between the two which I want to remove.
Here is the image I am getting:
Here is the HTML and CSS:
<!doctype html>
<html>
<head>
<title>BBC_Copy</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body {
margin:0;
font-family: arial, helvetica, sans-serif;
}
#topbar {
background-color:#7A0000;
width: 100%;
height:40px;
color:white;
}
.fixedwidth {
width:1050px;
margin:0 auto;
}
#logodiv {
padding-top:5px;
float:left;
border-right:1px solid #770000;
padding-right: 10px;
}
#signindiv {
font-weight: bold;
padding:2px 80px 12px 20px;
font-size: 0.9em;
float:left;
border-right:1px solid #770000;
}
#signindiv img {
position:relative;
top:3px;
}
#topmenudiv {
float:left;
}
#topmenudiv ul {
margin:0;
padding:0;
}
#topmenudiv li {
list-style: none;
font-wieght:bold;
font-size:0.9em;
border-right:1px solid #770000;
height:100%;
padding:10px 20px 12px 20px;
float:left;
}
#searchdiv {
float:left;
padding:5px 0 0 10px;
}
#searchdiv input {
height:25px;
border:none;
font-size:0.9em;
padding-left: 10px;
background-image: url("images/magnify.png");
background-repeat: no-repeat;
background-position:center right;
}
.break {
clear:both;
}
#newsbar {
background-color:#7A0000;
width: 100%;
height:40px;
color:white;
}
</style>
</head>
<body>
<div id="container">
<div id="topbar">
<div class="fixedwidth">
<div id="logodiv">
<img src="images/bbc_logo.png" />
</div>
<div id="signindiv">
<p><img src="images/signin.png" />Sign In</p>
</div>
<div id="topmenudiv">
<ul>
<li>News</li>
<li>Sport</li>
<li>Weather</li>
<li>iPlayer</li>
<li>TV</li>
<li>Radio</li>
<li>More...</li>
</ul>
</div>
<div id="searchdiv">
<input type="text" placeholder="Search" />
</div>
</div>
<div class="break">
</div>
<div id="newsbar">
</div>
</div>
</body>
</html>
Your problem is in:
<div id="signindiv">
<p><img src="images/signin.png" />Sign In</p>
</div>
The <p> tags are adding extra margin on top and bottom. I would recommend getting rid of the p tags... they don't add any semantic advantage.
Replace this:
<div id="signindiv">
<p><img src="images/signin.png" />Sign In</p>
</div>
with this:
<div id="signindiv">
<img src="images/signin.png" />Sign In
</div>
Result: http://jsfiddle.net/ru7zzc1w/1/
I have 3 floated elements in my div #blue_team, .vs_img, #red_team and everytime I tried to press ctrl - it destroys my design how to fix this?
-------------------HTML CODE:-------------------
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Battle Game</title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="http://code.jquery.com/jquery-1.8.1.js"></script>
</head>
<body>
<div id="container">
<div id="warriors">
<form id="blue_team">
<p>
<label class="team">Green Team</label>
</p>
<p>
<img src="resources/naruto.png" alt="">
<img src="resources/sasuke.png" alt="">
<img src="resources/sakura.png" alt="">
</p>
<p>
<label>Name:</label>
<input type="text" readonly="readonly">
<label>Type:</label>
<input type="text" readonly="readonly">
</p>
</form>
<img class="vs_img" src="resources/vs.png" alt="">
<form id="red_team">
<p>
<label class="team">Red Team</label>
</p>
<p>
<img src="resources/itachi.png" alt="">
<img src="resources/tobi.png" alt="">
<img src="resources/hidan.png" alt="">
</p>
<p>
<label>Name:</label>
<input type="text" readonly="readonly">
<label>Type:</label>
<input type="text" readonly="readonly">
</p>
</form>
<div class="clearfloats">
<p>
<input type="button" value="Start Battle">
</p>
</div>
</div>
</div>
</body>
</html>
-------------------CSS CODE:-------------------
div#container {
background-color:#151614;
width:800px;
margin:0 auto;
padding-top:8px;
padding-bottom:8px;
}
div#warriors {
border:1px solid #ff3534;
width:700px;
margin:0 auto;
padding:8px;
}
form {
border:1px solid #ff3534;
width:264px;
height:190px;
}
form#blue_team {
float:left;
margin-right:8px;
margin-bottom:8px;
}
.vs_img {
border:1px solid #ff3534;
width:150px;
height:190px;
float:left;
margin-right:8px;
}
form#red_team {
float:left;
margin-bottom:8px;
}
.clearfloats {
clear:both;
border:1px solid #ff3534;
}
.clearfloats p {
margin-bottom:8px;
}
p {
width:220px;
margin:0 auto;
margin-top:8px;
text-align:center;
}
label {
display:inline-block;
width:55px;
text-align:right;
color:#ff3534;
}
.team {
border:1px solid #ff3534;
width:150px;
padding:8px;
text-align:center;
}
input[type=text] {
width:110px;
margin-bottom:8px;
}
input[type=button] {
width:150px;
cursor:pointer;
}
Screenshot before pressing ctrl-:
After:
So I have a tiny header image that repeats on the x axis, but for some reason it won't show up in IE8. Anyone know a work around?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content='' name='description' />
<meta content='' name='keywords' />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<title>Book Site</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="title">
<span class="maintitle">Site Title Goes Here</span>
<br />
<span class="subtitle">Transitional Justice, Post-Conflict Reconstruction & Reconciliation in Rwanda and Beyond
Phil Clark and Zachary D. Kaufman, editors</span>
</div>
<img class="thebook" src="images/thebook.png" />
<span class="bookblurb">
<span class="bookbuy">Buy the book</span>
get it online
<br />
from Columbia,
Hurst or your
favorite reseller
</span>
</div>
<div id="navbar">
<ul>
<li>HOME</li>
<li>ABOUT THE BOOK</li>
<li>AUTHORS</li>
<li>NEWS & EVENTS</li>
<li>KIGALI PUBLIC LIBRARY</li>
<li>CONTACT US</li>
</ul>
</div>
<div id="content">
<div id="blockone">
<div id="polaroid">
<img class="polaroid" src="images/polaroid.png" />
<br />
<span class="roidplace">Gisimba Memorial Centre</span>
<br />
<span class="roidname">Kigali, Rwanda</span>
</div>
<div id="textblockone">
<h3>An incisive analysis of genocide and its aftermath</h3>
<br />
<span class="description">In After Genocide leading scholars and practitioners analyse the political, legal and regional impact of events in post-genocide Rwanda within the broader themes of transitional justice, reconstruction and reconciliation. Given the
forthcoming fifteenth anniversary of the Rwandan genocide, and continued mass violence in Africa, especially in Darfur, the Democratic Republic of Congo (DRC) and northern Uganda, this volume is unquestionably of continuing relevance. </span>
</div>
</div>
<div id="form">
<div id="statement">
This book should be labeled for the mature individual only. But for that mature individual it is of extreme interest.
It shows, far from any Manichean stereotyping, the many facets of having to try to live in an impossibly complex social
and human situation. Highly recommended.
<br /><br />
<span class="author">-Grard Prunier</span>
<br /><span class="bookname">The Rwanda Crisis: History of a Genocide (Hurst, 1995)</span>
</div>
<div id="contactform">
<span class="contactus">Contact us for additional information and site updates</span>
<br />
<span class="theform">
<form class="forming">
Name:
<input type="text" name="firstname" />
<br />
Title:
<input type="text" name="title" />
<br />
Institution:
<input type="text" name="institution" />
<br />
Email:
<input type="text" name="email" />
<br />
Message:
<input type="text" name="message" class="message" />
</form>
</span>
</div>
</div>
</div>
<div id="footer">
<p class="footernav">© 2008 After Genocide <span class="footerlinks">Sitemap | Terms | Privacy | Contact </span>
<span class="plug">Web design by <span class="avity">Avity</span>
</p>
</div>
</div>
</body>
</html>
----------------css-------------------
html, body {
margin:0;
padding:0;
background-color:#fdffe3;
font-family: Arial, Helvetica, sans-serif;
}
#wrapper {
width:1020px;
margin:0 auto;
}
/*begin header style*/
#header {
background:url("images/headback.png")repeat-x;
width:1020px;
height:120px;
font-family:arial;
position:relative;
}
#title {
width:565px;
height:100px;
float:left;
margin:20px 0 0 100px;
}
.maintitle {
font-size:40px;
}
.subtitle {
font-size:13px;
}
.thebook {
float:left;
margin:10px 0 0 30px;
border:2px solid #666666;
}
.bookblurb {
float:left;
width:110px;
margin:15px 0 0 15px;
font-size:13px;
}
.bookbuy {
font-weight:bold;
font-size:14px;
}
/*end header style*/
/*begin navigation style*/
#navbar {
margin:5px 0 0 0;
height: 30px;
width: 1020px;
background-color: #3a3e30;
}
#navbar ul {
padding: 0px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFF;
line-height: 30px;
white-space: nowrap;
margin:0 0 0 140px;
}
#navbar ul li {
list-style-type: none;
display: inline;
margin:0 40px 0 0;
}
/*end navigation style*/
/*begin content style*/
#content {
width:775px;
margin:0 auto;
}
#blockone {
margin:25px 0 0 0;
}
#polaroid {
float:left;
width:230px;
}
.roidplace {
font-weight:bold;
font-size:11px;
}
.roidname {
font-size:11px;
margin:0 0 0 40px;
}
#textblockone {
width:745px;
margin:0 0 0 0;
font-family: Arial, Helvetica, sans-serif;
}
.description {
font-size:13px;
}
#form {
background:url("images/formbackround.png") no-repeat;
width:758px;
height:231px;
margin:80px 0 0 10px;
}
#statement {
width:320px;
margin:30px 0 0 30px;
position:absolute;
font-size:15px;
font-style:italic;
float:left;
}
.author {
font-weight:bold;
font-size:14;
}
.bookname {
font-weight:bold;
font-size:11px;
color:#3f91ad;
}
#contactform {
float:right;
width:320px;
margin:20px 30px 0 0;
}
.contactus {
font-weight:bold;
font-size:12px;
}
.theform {
}
.forming {
}
.message {
height:50px;
}
#footer {
width:1020px;
height:65px;
background-color:#dfdacc;
margin:35px 0 0 0;
font-size:13px;
font-weight:bold;
}
.footernav {
margin:30px 0 0 150px;
position:absolute;
width:1020px;
}
.footerlinks {
margin:0 10px 0 10px;
color:#0f77a9;
}
.plug {
margin:0 0 0 175px;
}
.avity {
color:#0f77a9;
}
Live site: http://cheapramen.com/testsite/
Try adding a space between ) and repeat-x.
Correct code after adding space looks like this:
#header {
background:url("images/headback.png") repeat-x;
width:1020px;
height:120px;
font-family:arial;
position:relative;
}