Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font-weight with div not working

Status
Not open for further replies.

libweb

Programmer
Aug 1, 2003
2
US
Hi. On most all of my pages, I have a footer inside a div (div id="footer") with a couple of lines of text. In my style sheet, everything works as needed except the font-weight property. I want the font to be bold and I have tried using both "800" and "bold" but nothing will work. You can see one of the many pages with the footer at
This one has been baffling me for awhile. Any ideas? Thanks.
 
Remove the <p> and </p> tags fromt he footer, then it should work. I suspect that <p> is overriding the class set in the div tag.

Take Care,
Mike
 
Thanks, that was very helpful. I didn't want to remove the <p> because that part is in a template that is used in hundreds of pages, so instead I just changed around the style definitions for the <p>. There was no font-weight declared in <p>, but I had used the broad &quot;font&quot; declaration and that must have had something to do with it.

That got me on the right track. It's working now. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top