CSS <p style1> <p style2> | Sololearn: Learn to code for FREE!

0

CSS <p style1> <p style2>

I have a css-style-sheet including p{ color = color1} and html template: <p style="color: color2> text2 </p> <p> text2</p> Works fine with the different color, but now my (stupid) question: how do i get both p in the same line. (I'm not very familiar with html/css)

1/12/2021 10:37:08 PM

Fu Foy

2 Answers

New Answer

+9

Use p{ /*Any style applied here affects all p attributes*/ }

0

a instead of p. Omg I'll sleep a few hours