CSS: How to use multple elements ?
-
I want to use not just one
element. Instead, I want to specifiy multiple. for instance:
pre { display: block; font-family: monospace; white-space: pre; margin: 1em 0; background-color: yellow; }
But how the heck can I give that
element a name ? so in my html code I want to write this:
<pre class="yellow"> What ever is written within here has the YELLOW BG color ! </pre>
How and where do I define "yellow" within the css file ? That thisabove, knows it's the yellow
? Damm.. I am not a coder, in facet I always hated it ! Thank you for any little help
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CSS: How to use multple elements ?’ is closed to new replies.