Html help needed!

by 5 replies
6
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
#website design #html #needed
  • 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
  • Zero the padding on your body.

    body {
    padding: 0px;
    }

    Assuming that you are talking about, what I think you are talking about...
    • [1] reply
    • 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.
  • 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....




  • Thanks EWGQDD, I just learned something myself.

Next Topics on Trending Feed