Is there an html property that controls how close to the top of a page the first line of text can be?

I am working on a web page, and have found that the first line of text is not as close to the top of the page as I would like for it to be. Is there something I can use in the code to start my text closer to the top of my page?

3 Answers

  • 1 decade ago
    Favorite Answer

    Sort of. You can do this with CSS. Try adding this to the body tag:

    <body style="margin-top: 10px;">

    Of course, replace 10 with whatever number you want until you get the position you want.

  • 1 decade ago

    try this code



    <input type="button" value="button"


    <p style="position:absolute;




    my text goes here




  • Anonymous
    1 decade ago
Still have questions? Get your answers by asking now.