Forum Moderators: not2easy

Message Too Old, No Replies

OsCommerce Stylesheet

How to use a H1 tag?

         

bsnrjones

8:52 pm on Jun 29, 2004 (gmt 0)

10+ Year Member



I am running Oscommerce and this is my first time using styelsheet.css files.

I have a block of text that I want to have be an H1 tag, but decrease the size of the font somewhat so it is not so big.

How would I set this up in the stylesheet?
What do I put in the html around the block of text so that it pulls the style from the stylesheet?

Please be patient, I am learning!

Burke

Spook

10:57 pm on Jun 29, 2004 (gmt 0)

10+ Year Member



Do you want to change every H1 tag, or just a few "Special" ones.

If you want to change every one then find the H1 selector in the current stylesheet and play with the font-size until you get what you want. Something like:

h1 {font-size: 80%;}

There may be other things specified within the braces {} too.

If you just want to change a few special ones you will likely have to create a new class. Thats simple, In your stylesheet you could do something like:

.specialclass {font-size: 80%;}

Then in your html:

<h1 class="specialclass">Your Text</h1>

Note: Some people prefer to use em's instead of % for sizing text. Using either will allow the text to re size if the viewer choses to change the text size from his/her browser.

This is a good read: [webmasterworld.com...]

Hope this makes sense - Its been a long day!

Good Luck