Professional Documents
Culture Documents
(Reguli) CSS3
CSS3 este cel mai nou standard CSS.
Selectori
Caseta de text
Fundal si chenare
Imagini
Efecte de text
Animatii
1
Chenare (borders)
In CSS3 putem crea chenare rotunjite, casete de
text cu umbre, etc.
Proprietati utile pentru chenare:
border-radius
box-shadow
border-image
Aplicatie:
<!DOCTYPE html>
<html>
<head>
<style>
div {
border: 2px solid #a1a1a1;
padding: 10px 40px;
background: #dddddd;
width: 300px;
border-radius: 25px;
}
</style>
</head>
<body>
<div>Caseta cu colturi rotunjite.</div>
</body>
</html>
2
div {
box-shadow: 10px 10px 5px #888888;
}
div {
border-image: url(chenar.png) 40 40 round;
}
Culori de fundal:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: url(brasov.gif);
background-size: 80px 60px;
background-repeat: no-repeat;
padding-top: 40px;
}
</style>
</head>
<body>
3
</p>
</body>
</html>