gothictrade
Well-Known Coder
In a previous question I wanted to learn to make a class so I had in my HTML document..
and then in my css file I did
However... is it possible for me to do this with like.. a paragraph text? I want there to be a paragraph that I control its contents style/format via a css file.
For example..
Can I do something like
and then in the css file
Is that possible? I cant seem to get it to work though
Code:
<button class="btn btn-1">button 1</button>
Code:
btn {
// stuff
}
However... is it possible for me to do this with like.. a paragraph text? I want there to be a paragraph that I control its contents style/format via a css file.
For example..
Can I do something like
Code:
<p class="para1">text text text</p>
Code:
para 1 {
color: red;
}
Is that possible? I cant seem to get it to work though