Below is an example to use div.img as the CSS name. You can use any name such as div.creative, div.myCss.
You can have as many as command inside the div.img. Here is the explanation:
- CSS code must write inside <style > and </style>
- div.img is the CSS name, you can create many different CSS name between <style > and </style>
- float: left means align the image to the left. The image will align vertically if you remove this line.
- background: green means fill the image background with green colour.
<html> </html> <div > |
Add another CSS and named it as div.desc. The div.desc cause the blue colour text with 12 pixels show under the image.
<html> /********** text attribute to descript the image **********/ </style> </html> <div > |