Help please! HTML5 background color

 

Hi! So I have been making simple web pages for my Web Design class for the past month. I have only just begun, so all I have seen so far is some standard tags and some CSS. Anyways, my main problem with this page I have made is that I cannot change my background color. I tried putting the background-color:beige everywhere in my embedded CSS and I cannot manage to change the color. The ENTIRE background of the page needs to change color. Here is my code:

----------------------------------------------------------------------------------------------------------------------------- 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pixal Home Page</title>

<style type="text/css">
body{
background:url(pback.jpg);
float:left;
}
div.bodymargin{
margin:auto;
margin-left:15%;
margin-right:1.5%;
}
hr{
border: none;
height: 2px;
background-color:red}
p.contact{
font-weight:bold;
font-size:8pt;
color:blue;
font-family:Arial, Helvetica, sans-serif;
text-align:center
}

</style>
</head>

<body>

<img src="dclist1.gif" style="float:left" alt="Sidebar" usemap="#dclist1">
<map name="dclist1">
<area shape="rect" coords="1,1,81,15" href="pixal.html" alt="Opens home page">
<area shape="rect" coords="23,50,64,62" href="dc100.html" alt="Opens DC100 Page">
<area shape="rect" coords="23,64,64,79" href="dc250.html" alt="Opens DC250 page">
<area shape="rect" coords="23,81,64,95" href="dc500.html" alt="Opens DC500 page">
</map>

<div class="bodymargin" style="text-align:center">
<img src="plogo.jpg" alt="Pixal Logo">

<!-- start page text -->

<p>Pixal is the industry leader in the field of digital equipment. Pixal's digital cameras have
won Best Buy of the Year awards from <i>Digital Imaging</i> for the past three years. In
addition, the DC100, Pixal's newest model for the home user, has won the the prestigious
Product of the Year award by <i>Digital Camera Magazine</i>.</p>

<p>All digital cameras come bundled with Pixal Photoware<sup>&trade;</sup>, Pixal's award-winning
software.</p>
<!-- end page text -->

<hr>
<footer>
<p class="contact">
Pixal Inc. &middot;
400 Stewart Ave. &middot;
Westmount, Quebec &nbsp;&nbsp;H2T 4R1 &middot;
1 (800) 555-8761
</p>
</footer>
</div>
</body>
</html>

------------------------------------------------------------------------------------------------------------------------------

I have validated the HTML5 http://validator.w3.org/check as well as the CSS http://jigsaw.w3.org/css-validator/validator and they were both error free :( The page right now looks exactly how its supposed to be (just without the background color. Help much appreciated!

http://imageshack.us/a/img31/8717/m9ny.jpg

 How the page currently looks

Can you upload the pback.jpg file?

Also, try get into the habit of formatting your code, it helps find issues such as the one's we're looking for here...

Anyone not using Sublime Text should go download Sublime Text right now.

....aaaaand I see the issue, it's:

background-image: url(pback.jpg);

The man speaks the truth...

https://docs.google.com/file/d/0B5nw2TBd72jAU0VQQ1NvVmRMRUk/edit?usp=sharing

Here are all the raw files guys!

Make sure the background is beige while maintaining the exact same look! I appreciate all your help!

I use Notepad++

That's why you need to upgrade to Sublime Text 3

I was a long time Notepad++ and Ultraedit user until I spent one day with this program. All the things that Notepad++ does, Sublime does better, and sexier!

LOL, the balls on you are amazing.

Fine, how's this beige?

 

Perfect. Can I see the code? The code is more important than the visual itself. I would like to understand how to do the page properly and learn from my mistake.

I love it! Glad you guys recommended it!

Re-upped here: https://dl.dropboxusercontent.com/u/96665632/Pixal.zip

Basically changed the pback.jpg file to have some beige on it plus these changes to the body tag:

body{
background-image: url(pback.jpg);
background-color: #f2eabc;
background-repeat: repeat-y;
float: left;
}

 

Thank you so much for all your help! I should have used background-image, not background:url! I appreciate all of this for the time you dedicated into it. Very clear and helpful instructions!

Ive just downloaded, on your recommendation. I prefer it over notepad ++ already. Worth the $70?

It's working for free right now. "Build 3047 is now available to both registered users and the general public. Build 3047 is the fastest, most stable, most polished version of Sublime Text yet." -http://www.sublimetext.com/blog/