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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -