PDA

View Full Version : Additional CSS for H2, H3 tags has no effect


gaiusrufus
05-09-2008, 03:07 PM
hi all!

i added an additional css for H2 and H3 tags

but the font size on pages is very large, regardless of the size specified in the css

even if i delete the css, the font size does not change
so the additional css seems to have no effekt.

any suggestions?

thank you!
gr

Lynne
05-09-2008, 03:29 PM
How about a link to the site/page where this is happening so we can check it out?

gaiusrufus
05-11-2008, 02:35 PM
i removed it, but i wanted to integrate this:

Style Manager -> Style and Templates -> {Your Theme Name} -> Main CSS -> Additional CSS (at the very bottom of the page) and enter:
h2.seovb2 {font-family: Arial; font-size: 20px; color: #000000; font-weight: bold;}
h3.seovb3 {font-family: Arial; font-size: 16px; color: #000000; font-weight: bold;}
Hit Save, and then from the drop down in the top left corner, select Edit Templates
Open forumdisplay templates ->FORUMDISPLAY and after $navbar add the following:
<div style=?text-align:center;?>
<h2 class=?seovb2″>$foruminfo[title_clean]</h2>
<h3 class=?seovb3″>$foruminfo[description]</h3>
</div>
Hit save and then open the SHOWTHREAD template and perform a similar edit using the following:
<div style=?text-align:center?>
<h2 class=?seovb2″>$thread[title]</h2>
<h3 class=?seovb3″>$foruminfo[title_clean]</h3>
</div>

the text displays, but i can not influence its font/size, so the css doenst work..
:cool:

Lynne
05-11-2008, 03:27 PM
I copied exactly what you did and it didn't work. It's because you didn't use standard quote marks in your html and so it converted it.

Use " not ”
So:
<div style="text-align:center;">
<h2 class="seovb2">$foruminfo[title_clean]</h2>
<h3 class="seovb3">$foruminfo[description]</h3>
</div> Not:
<div style=”text-align:center;”>
<h2 class=”seovb2″>$foruminfo[title_clean]</h2>
<h3 class=”seovb3″>$foruminfo[description]</h3>
</div>

gaiusrufus
05-12-2008, 06:09 AM
Thank you Lynne!

I did not even know, there is a difference .....

you are right:
with ' it works,
with " it doesn't work

Thank you! :)