5 replies
  • WEB DESIGN
  • |
Hi

I'm trying to build a very simple squeeze page but i cant get the div tag to start at the top of the page.
I have a few pixels of deadspace that i want to remove but dont know how to?

Thanks in advance
#html #needed
  • Profile picture of the author Ori_G
    Seems like you should just be able to do it with the .css - Set the style of the div tag so the top margin = 0
    {{ DiscussionBoard.errors[2405567].message }}
  • Profile picture of the author BobJutsu
    Zero the padding on your body.

    body {
    padding: 0px;
    }

    Assuming that you are talking about, what I think you are talking about...
    {{ DiscussionBoard.errors[2405580].message }}
    • Profile picture of the author BeckM2
      1. Install the firefox web developer toolbar.

      2. Go to the page in a browser and select the area in question.

      3. right click on the highlighted text and click "view selection source"

      This should help you isolate the problem.
      Signature
      Short Hills Design, LLC
      Internet Marketing for Dentists and Physicians
      {{ DiscussionBoard.errors[2410132].message }}
  • Profile picture of the author Steve Wells
    Originally Posted by The Beginner View Post

    Hi

    I'm trying to build a very simple squeeze page but i cant get the div tag to start at the top of the page.
    I have a few pixels of deadspace that i want to remove but dont know how to?

    Thanks in advance
    in your body tag you need to set your margins to "0", or in the css code styles.

    You can add this to your styles.css code like below;

    body {
    margin:0;
    }

    OR

    Or in your html code add this to your body tag....

    <body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0">


    This should work, it works for me on all my sites.....
    Signature
    Need Custom Graphics Work? - Message Me For A Design Quote!
    {{ DiscussionBoard.errors[2410174].message }}
  • Profile picture of the author Gene Freeman
    Thanks EWGQDD, I just learned something myself.
    {{ DiscussionBoard.errors[2417658].message }}

Trending Topics