2 replies [Last post]
trek
trek's picture
Offline
newbie
Last seen: 6 years 8 weeks ago
Timezone: GMT+1
Joined: 2014-06-13
Posts: 2
Points: 3

Hi Everyone

I know this is a very simple question and it may have been answered on the forum before, but I have tried searching but because i dont know exactly what I am searching for and could not find my answer.

What I want to do is make an h2 look different from other h2`s. I also would love and example of once I make the change in my stylesheet how exactly do i then use that on a page.

I hope this makes sense, sorry for being so clueless...

Thanks in advance

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 9 hours 18 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi Trek, You could give the

Hi Trek,
You could give the h2 a class:
<h2 class="different"> </h2>
Then style it like:

.different {
    color:red;
}

trek
trek's picture
Offline
newbie
Last seen: 6 years 8 weeks ago
Timezone: GMT+1
Joined: 2014-06-13
Posts: 2
Points: 3

Hi Tony

Thank you very much, I really appreciate your help. I know it is such a simple thing but I had been searching for a couple of hrs before joining and posting here.

Cheers
Trek