Beginners often create Web design that is boxy and cramped--and who can blame them? The building blocks of Web pages--div tags--are rectangles. But good design needs to breathe, so that the page seems like one coherent fabric rather than a collection of klunky boxes. Here are some ways to use CSS to design your way "out of the box."
body {
background: brown url( explosion.jpg ) no-repeat ;
}
#watermark {
opacity: .7 ;
}
.text-box {
border-bottom: silver solid 1px ;
}
.text-box {
border-radius: 10px ;
}
body {
background-image:
linear-gradient(
to top right,
darkGoldenrod,
red
)
;
}
div {
background-image:
radial-gradient(
circle at bottom left,
darkGoldenrod,
Goldenrod 40%,
red
)
;
}
a {
text-decoration: none ;
border-bottom: dotted 1px ;
}
a:hover {
border-bottom: solid 1px ;
}
#animate-div {
width: 10% ;
}
#animate-div:hover {
width: 100% ;
transition: all 1s ease-in-out ;
}