Jump to content

Background Problem


eerabbit
 Share

Recommended Posts

Hi, I can't get my background to touch the edge of the windows. Can someone explain why?css:

body {background: #000000;min-width: 940px;font: 12px georgia;color: #656565;align: center;}#all {align: left;}#banner {background: URL(images/head.jpg) no-repeat left center;border-right: 1px dotted #575757;width: 940px;height: 211px;float: left;z-index: 1;}#left {background: URL(images/headtop.jpg) repeat-x top left;height: 211px;width: 50%;padding-right: 470px;margin-left: 0px;margin-right: -940px;float: left;z-index: 2;}#right {background: URL(images/headbot.jpg) repeat-x bottom left;height: 211px;width: 50%;padding-left: 470px;margin-left: -941px;float: left;z-index: 3;}

the site is here

Link to comment
Share on other sites

* {	 margin: 0px;	 padding: 0px; }

This is a good idea. Just be aware that the * selector is universal, meaning it applies to everything. The different look may surprise you at first. List elements will look especially different. If you just want to adjust the body, put those definitions in your body, html selector.Also, everyone should be aware thatmargin: 0px;is shorthand for:margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...