+ 3

How can i assign a particular color to a specific h1 element that the color doesn't apply to other h1's

3rd Oct 2017, 7:33 PM
Osasona Similoluwa
Osasona Similoluwa - avatar
6 ответов
+ 3
it will be wrong to use mor that one h1 because the search engine automatically use your h1 for search results, but how ever with CSS you can use it this way h1.example { you will have to specify the h1 element by naming it by the example . but I recommended you use h1{ background -color= "sky blue" then use h2 for the next heading and then use text transformation to increase the font as big as the h1 element . this way h1 will only have the desired color
4th Oct 2017, 10:20 AM
Franklyn Omeben
Franklyn Omeben - avatar
+ 8
Assign an id to the h1. Remember id's are unique, so when doing your css you can refer to the h1 by its id
3rd Oct 2017, 7:38 PM
King André
King André - avatar
+ 3
I think This is best possible solution of your question. By this you can select any specific h1 of HTML document <style> h1:nth-child(4) { color: blue; } </style> Note: Internet Explorer 8 and earlier versions do not support the :nth-child() selector.
3rd Oct 2017, 7:39 PM
NITISH KUMAR
NITISH KUMAR - avatar
+ 2
do you know much about database table @ osasuna
4th Oct 2017, 10:49 AM
Franklyn Omeben
Franklyn Omeben - avatar
+ 2
do you know much about database table @ anyone
4th Oct 2017, 10:50 AM
Franklyn Omeben
Franklyn Omeben - avatar
+ 1
not really
4th Oct 2017, 10:55 AM
Osasona Similoluwa
Osasona Similoluwa - avatar