Aims:
h1
{
padding-top: 0.5em;
padding-right: 1em;
padding-bottom: 0.5em;
padding-left: 1em;
}
h1
{
padding: 0.5em 1em 0.5em 1em;
}
p
{
border-color: black;
border-width: 1px;
border-style: solid;
}
p
{
border: black 1px solid;
}
border-top-color, border-top-width,
border-top-style (and similarly for border-right,
border-bottom and border-left)
border-radius:
p
{
border: solid blue 10px;
border-radius: 15px;
}
ems) will be more scalable than absolute ones (e.g. pixels)
border-top-right-radius and similarly for top-left, bottom-right and bottom-left
border-radius
two numbers, the corners are ellipses rather than circles:
border-top-right-radius: 24px;
border-top-left-radius: 24px;
border-top-right-radius: 50px 30px;
border-bottom-right-radius: 50px 30px;
p
{
box-shadow: 5px 5px gray;
}
inset
nav element:
<nav>
<ul>
<li><a href="">Wombats</a></li>
<li><a href="badgers.html">Badgers</a></li>
<li><a href="squirrels.html">Squirrels</a></li>
</ul>
</nav>
list-style)padding & margin)lis from block-level to inline level
(display)
text-decoration)href=""
nav ul
{
list-style: none;
margin: 0;
padding: 0;
}
nav li
{
display: inline;
}
nav a
{
padding: 0.5em 1em 0.5em 1em;
border: 1px solid #711515;
text-decoration: none;
color: white;
background-color: #B51032;
}
nav a:hover
{
background-color: #711515;
}
nav a[href=""]
{
color: black;
background-color: white;
}
lis
from block to inline
a's from inline to block