Welcome to Geeklog, Anonymous Wednesday, January 15 2025 @ 07:03 am EST

Geeklog Forums

headers not showing correct size


Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
confused
Hi, I wrote up a document and I'm trying to post it as a story on my web site. I am using header tags, and I have added the header tags to config.php. The thing that is confusing me is that I expect H1 to show bigger text than H2, and for H2 to show bigger text than H3, etc..
But just the opposite is happening. H3 is bigger than H2. I looked in the style.css under layout->professional but I can't tell if something in there is affecting the header tags or not.
Has anyone else run into this issue?

EDIT: when I view the printable story format, all the headers display correctly.

Thanks,

Jim
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It's in the stylesheet. Search for "h1", etc.

bye, Dirk
 Quote

Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
Quote by Dirk: It's in the stylesheet. Search for "h1", etc.

bye, Dirk


Ok, I found it. I changed the h1 and h2 font-size, and I added an h3 and h4.
I found something else. After I made the changes to style.css, the font sizes didn't change. I tracked the problem down to a definition for td in style.css. It was setting font-size to 73%. I removed the 73% and all the headers display as I was expecting.

Here's the code in case anyone wants to see what I did.
Text Formatted Code

h1 {
  font-size: 130%;
}
h2 {
  font-size: 115%;
}
h3{
  font-size: 100%;
}
h4{
  font-size: 85%;
}
td {
  color:#000000;
/*  font:73% Tahoma,verdana,helvetica,arial,sans-serif*/
  font: Tahoma,verdana,helvetica,arial,sans-serif
}

 


Thanks!

Jim
 Quote

All times are EST. The time is now 07:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content