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
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    h1 tag styling not showing up

    Works fine on all of the other DIVS but the Box3 h1 refuses to display properly.

    Anyone? I'm dyin' here.

    http://ahhl.co/test/h1

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    On line 29:

    Code:
    #box1 h1 {
        background-image: url(images/box_banner.jpg);
        background-position: center;
        background-repeat: no-repeat;
        margin-top: 0px;
        padding: 0px;
        text-align: center;
        font-size: 26px;
        line-height: 35px;
        font-family: "bellerose";
        color: black;
        text-indent: 0px;
        height: 50px;
    }
    This will only change it for the <h1> in #box1.

    Try using just <h1>:

    Code:
    h1 {
        // same code as above
    }
    Last edited by Sammy12; 09-09-2012 at 12:07 AM.

  • #3
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was just coming back to delete this because I found adding display:block;
    to it worked fine but you are right... if it's going to be used in the same way why define it for each div.

    Smart! Thanks.

    I always add superfluous code.


  •  

    Posting Permissions

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