Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-08-2012, 11:04 PM   PM User | #1
jamesenvy
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jamesenvy is an unknown quantity at this point
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
jamesenvy is offline   Reply With Quote
Old 09-08-2012, 11:05 PM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
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-08-2012 at 11:07 PM..
Sammy12 is offline   Reply With Quote
Old 09-08-2012, 11:09 PM   PM User | #3
jamesenvy
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jamesenvy is an unknown quantity at this point
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.
jamesenvy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:30 PM.


Advertisement
Log in to turn off these ads.