help with dreamweaver indenting header

Discussion in 'HTML & Website Design' started by indyonline, Dec 13, 2007.

  1. #1
    Hello everyone. I just had a quick question. I use dreamweaver and when I build a page and add in an image as a header there is an indent on the top and sides of the image. How can I stop that and make it line up on the top and sides? Does anybody know how to set the page width on dreamweaver? thanks all.
     
    indyonline, Dec 13, 2007 IP
  2. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #2
    By default the margins are not set to zero. So there's 2x ways to rectify this...
    1. Go to MODIFY > PAGE PROPERTIES and set all the margins to 0 pixels.
      This will simply dump a style in the head of your page for your body tag as such:
      <style type="text/css">
      <!--
      body {
          margin-left: 0px;
          margin-top: 0px;
          margin-right: 0px;
          margin-bottom: 0px;
      }
      -->
      </style>
      Code (markup):
    2. Alternately just put that same style in your head but use the much simpler method:
      <style type="text/css">
      <!--
      body {margin:0;}
      -->
      </style>
      Code (markup):
    3. Alternately put that style in a separate css file ;)

    Yeah, I know, that was 3 options not 2, but that's value for money for ya :)
     
    Lever, Dec 13, 2007 IP
    indyonline likes this.
  3. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #3
    excellent. Thanks for the info. very helpful.
     
    indyonline, Dec 13, 2007 IP
  4. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #4
    You're welcome :)
     
    Lever, Dec 13, 2007 IP
  5. Data Money

    Data Money Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks, i can use this info as well.
     
    Data Money, Dec 13, 2007 IP