Setting style for h tags


Badge +1

Hi, I am not a programer, but have just picked up what I need to know to set up my Joomla 3 website with K2 for the articles and blog.  I am using S5 Design Control template and have played around with the custom.css override file. I put the following into the file to try to get this styling everytime I use the h1 tag in my articles but it doesn't work.

 

#h1.articleclass {
text-align:center;
font-weight: bold;
font-size: 36px;
line-height: 36px;
Colour: #787678
} !important

Using Firefox's "inspect element" I found that my custom.css is not being used of the article page.  I know that I have to put the module class suffix in a module, but I don't know how to do it in this case

 

Am I off the track or what else do I have to do.  obvious there is more to it than that.

 

Thanks heaps for your help

 

 


5 replies

Userlevel 5
Badge +16

Hi,

 

A quick not here, if you are targeting a HTML tag, you don't need to use '#' because this is for ID not tags

 

Try to remove # from your CSS

Badge +9

I think you're in the wrong place.

 

These forums are for SourceCode's k2 products (blackpearl, smartforms, appit, etc.)

http://www.k2.com/

 

I think you're looking for the Joomla extension K2

http://getk2.org/

Badge +1

Thanks for your help Mustafa, unfortunately it didn't work.   

Badge +1

Thanks for pointng me in the right direction Victoria, I will more to the correct forum.  I am very new this forum.

Badge +10

Does you h1 tag have a class="articleclass" 

Reply