Log in

View Full Version : Resolved Trying to add another header tag



theremotedr
10-16-2013, 09:18 AM
I would like to change the colour of the text shown on the page below.
http://www.theremotedoctor.co.uk/skype.html

The long sentence which is currently red needs to be white,otherwise the page is how it should be.
As other text on the site also use the same h2 tag it needs to be assigned its own h number.
Trying to do this just just makes the text very small and the dotted line dissapear.

Please could you advise.

Beverleyh
10-16-2013, 11:28 AM
Give it a class;

<h2 class="mytext">

And then target that in your CSS;

h2.class { color:white; }

This way, you can still use the h2 tag.

Actually, your tag is already using a class of "borderisall" which I can't see in your stylesheet so you could probably use that.

theremotedr
10-16-2013, 11:52 AM
Are you able to assist further please.
Am i to leave the code in the html page as it is ?
I am not sure what i now need to do in the css file,what do i need to write.

I come a long way with trying to build this site with some help but some things just stump me.

Beverleyh
10-19-2013, 03:54 PM
Leaving the HTML as-is, you should just be able to add this to your CSS;
h2.borderisall { color:white; }