Remove white gap at top of browser screen

Posted on 2011-05-04
Last Modified: 2012-05-11
I want to remove the white gap at the top of the screen before my image begins.

Where do I set this setting for 0margin or whatever it needs?

Question by:BobCSD
    LVL 13

    Accepted Solution

    Try on the body tag.

    We can't see your code, it is always better to post that as well.

    But try

    body {
      margin: 0 !important;
      padding: 0 !important;

    Open in new window

    LVL 13

    Expert Comment

    Or if your style is inline (in the HTML)

    <body style="margin: 0 !important; padding: 0 !important;">

    Open in new window

    LVL 1

    Author Closing Comment

    thanks so much!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now