White Space On Top and Left

Posted on 2014-08-24
Last Modified: 2014-08-24
I am building a webpage and I have a white space to the top and to the left.  How do I get rid of it so that the image and the div appear without it?
Question by:DS928
    LVL 58

    Accepted Solution

    body {
        margin: 0;

    Open in new window


    Author Comment

    Thank you Gary.  I added the exact code to a css file called general.css and it's not working.  I must be doing something wrong!
    LVL 58

    Expert Comment

    I don't see the style online

    Author Comment

    Nevermind works perfectly!  I have been having FTP problems with Dreamweaver CS6 and GoDaddy all morning. Thank you once again.

    Author Closing Comment

    Great as always!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
    Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
    In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at Browse or search based on font properties or name to find a suitable font for…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now