CSS Exercises
CSS Exercises
10. With the border property: Set the border for p to "10px",
"solid" and "green".
11. Set the left margin of <h1> to "20px".
12. Use the margin property to set the top and bottom margins for
<h1> to "50px", and left and right margins to "25px".
20. Set the font size for the page to "20px", and the font size for
<h1> to "3em".
21. Set the color for unvisited links to "red", and the color for visited
links "blue".
22. Set the background color for visited and unvisited links to
"lightblue", and the background color for the hover and active link
states to "yellow".
23. Set the list style for unordered lists to "square", and the list
style for ordered lists to "upper-roman".
24. Set the border to "2px solid green" for table, th and td
elements.
27. Change the color of all <p> elements, that are immediate
children of <div> elements, to "red".
29. Set text color to "red", and the text size to "xx-large", for the first
letter of the <p> element.
30. Remove the transparency/opacity of the <img> element when
the user hovers over it with the mouse pointer.
31. Give the <div> element rounded corners (use the shorthand
property and the value "25px").
32. Set a "2px" horizontal, and "2px" vertical, text shadow for the
<h1> element.
33. Set a "10px" horizontal, and "10px" vertical, box shadow for the
<div> element.
(hint: div { box-shadow: 10px 10px; } )