3 Replies - 342 Views - Last Post: 22 January 2012 - 07:52 AM

Topic Sponsor:

#1 ianian112  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 106
  • View blog
  • Posts: 359
  • Joined: 28-November 09

Aligning items to the very left

Posted 21 January 2012 - 10:22 PM

I'm trying to get my html items to align all the way to the left, but I can't figure out how to do it without changing the position to relative, absolute or fixed.
Posted Image

The gray in the picture is what I'm trying to get rid of, I want the black part to start from there.

Note: I used absolute for the Home bar thats why its aligned correctly.

This post has been edited by ianian112: 21 January 2012 - 10:22 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Aligning items to the very left

#2 thrca  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 28
  • View blog
  • Posts: 65
  • Joined: 21-January 12

Re: Aligning items to the very left

Posted 21 January 2012 - 11:43 PM

Posting your css or code might be very helpful, but I might start with...

<style>
BODY {
  margin:0;
  padding:0;
}
</style>


Was This Post Helpful? 1
  • +
  • -

#3 ianian112  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 106
  • View blog
  • Posts: 359
  • Joined: 28-November 09

Re: Aligning items to the very left

Posted 22 January 2012 - 01:31 AM

Thanks a lot that solved my problem, I hadn't even thought to look at the margins of the body :S
Was This Post Helpful? 0
  • +
  • -

#4 Tayacan  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 33
  • View blog
  • Posts: 116
  • Joined: 18-January 11

Re: Aligning items to the very left

Posted 22 January 2012 - 07:52 AM

A css reset like this one is a useful thing :-)
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1