Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: h1 indent issue

  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    h1 indent issue

    I am a complete noob so go easy please, i have coded my index.html file as such:
    <div>
    <h1>My Website</h1>
    <p><a href="page02.html">Learn More About Me.</a></p>
    <img src=img/080.jpg />
    </div>

    and my stylesheet as such
    div {
    margin: 50px
    }

    but mt <h1> is indented more than the <p> or <img>, can someone tell me how to fix this? i am using Komodo Editor. thanks.

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,224
    Thanks
    10
    Thanked 269 Times in 268 Posts
    What margins and padding have you set for <h1>, <p> and <img> elements? If you've set none of them, then you're using default values that apparently aren't what you wanted. So set those margins and padding, and you'll be able to adjust them specifically to your needs.

    Dave

  • Users who have thanked tracknut for this post:

    ZackDad13 (03-05-2013)

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    resolved

    Thanks, overlooked another 50px margin for h1 in a different tag, that's why it wasn't lining up. like i said, very new at this. Thanks for the help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •