html - How do you use one class for multiple tags? -


i want use 1 class 2 different tags. have declare <h1 class="line"> , <p class="line"> ??? , in css .line , change both then? please help. thanks

you need declare class within css:

.line {     background-color: red; } 

and can apply class html elements:

<tag1 class="line" /> <tag2 class="line" /> 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -