CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   h1 tag styling not showing up (http://www.codingforums.com/showthread.php?t=272606)

jamesenvy 09-08-2012 11:04 PM

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

Sammy12 09-08-2012 11:05 PM

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
}


jamesenvy 09-08-2012 11:09 PM

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.


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.