Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Css content Div not lining up with page

  • Please log in to reply




  • Member
  • PipPipPip
  • 255 posts
I am having problems wiht my CSS, i forgot to put he doctype in the HTML document and now my content div does not line up witht the edge of the page, can anyone tell me y?

here is my css for the content div, if you want any more info please ask.

position: absolute;
margin: 60px 20px 20px 20px;
border: 20px solid #505050;
width: 96%;
height: 100%;
top: 0px;
padding: 120px 20px 20px 180px;
z-index: 10;
background: #ffffff url('/images/front.gif') bottom left no-repeat;

my doctype tag is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR...l4/strict.dtd">

to see the issue i am having please check http://demo.tekcraft.co.uk

Thanks so much ofr anyones help!

Edited by glen_m_32, 04 December 2006 - 10:03 AM.

  • 0





  • Topic Starter
  • Member
  • PipPipPip
  • 255 posts
I have tried adjusting the width % to a lower value, it works on higher screen resolutions, but it does not resize my contents to the page!

I thought the idea of the width % value was to make it xx% of the page width? or am i barking up the wrong tree!

someone please help me!

Thanks again!
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP