Квадрат
[html]<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.square {
height: 50px;
width: 50px;
background-color: #555;
}
</style>
</head>
<body>
<h2>Квадрат CSS</h2>
<div class="square"></div>
[/html]
<meta name="viewport" content="width=device-width, initial-scale=1"> <style> .square { height: 50px; width: 50px; background-color: #555; } </style> </head> <body> <h2>Квадрат CSS</h2> <div class="square"></div>
Круг
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.circle {
height: 50px;
width: 50px;
background-color: #555;
border-radius: 50%;
}
</style>
</head>
<body>
<h2>Круг CSS</h2>
<div class="circle"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .circle { height: 50px; width: 50px; background-color: #555; border-radius: 50%; } </style> </head> <body> <h2>Круг CSS</h2> <div class="circle"></div> </body> </html>
Овал
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.oval {
height: 50px;
width: 100px;
background-color: #555;
border-radius: 50%;
}
</style>
</head>
<body>
<h2>Овал CSS</h2>
<div class="oval"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .oval { height: 50px; width: 100px; background-color: #555; border-radius: 50%; } </style> </head> <body> <h2>Овал CSS</h2> <div class="oval"></div> </body> </html>
Трапецию
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.trapezoid {
border-bottom: 50px solid #555;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 125px;
}
</style>
</head>
<body>
<h2>Tрапеция CSS</h2>
<div class="trapezoid "></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .trapezoid { border-bottom: 50px solid #555; border-left: 25px solid transparent; border-right: 25px solid transparent; height: 0; width: 125px; } </style> </head> <body> <h2>Tрапеция CSS</h2> <div class="trapezoid "></div> </body> </html>
Прямоугольник
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.rectangle {
height: 50px;
width: 100px;
background-color: #555;
}
</style>
</head>
<body>
<h2>Прямоугольник CSS</h2>
<div class="rectangle"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .rectangle { height: 50px; width: 100px; background-color: #555; } </style> </head> <body> <h2>Прямоугольник CSS</h2> <div class="rectangle"></div> </body> </html>
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.parallelogram {
width: 100px;
height: 50px;
transform: skew(20deg);
background: #555;
}
</style>
</head>
<body>
<h2>Параллелограмм CSS</h2>
<div class="parallelogram"></div>
</body>
</html>
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .parallelogram { width: 100px; height: 50px; transform: skew(20deg); background: #555; } </style> </head> <body> <h2>Параллелограмм CSS</h2> <div class="parallelogram"></div> </body> </html>
[/html]
Треугольник вверх
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.triangle-up {
width: 0;
height: 0;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-bottom: 50px solid #555;
}
</style>
</head>
<body>
<h2>Треугольник вверх CSS</h2>
<div class="triangle-up"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .triangle-up { width: 0; height: 0; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 50px solid #555; } </style> </head> <body> <h2>Тругольник вверх CSS</h2> <div class="triangle-up"></div> </body> </html>
Треугольник вниз
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.triangle-down {
width: 0;
height: 0;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-top: 50px solid #555;
}
</style>
</head>
<body>
<h2>Треугольник вниз CSS</h2>
<div class="triangle-down"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .triangle-left { width: 0; height: 0; border-top: 25px solid transparent; border-right: 50px solid #555; border-bottom: 25px solid transparent; } </style> </head> <body> <h2>Tреугольник влево CSS</h2> <div class="triangle-left"></div> </body> </html>
Треугольник вправо
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.triangle-right {
width: 0;
height: 0;
border-top: 25px solid transparent;
border-left: 50px solid #555;
border-bottom: 25px solid transparent;
}
</style>
</head>
<body>
<h2>Tреугольник вправо CSS</h2>
<div class="triangle-right"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .triangle-right { width: 0; height: 0; border-top: 25px solid transparent; border-left: 50px solid #555; border-bottom: 25px solid transparent; } </style> </head> <body> <h2>Tреугольник вправо CSS</h2> <div class="triangle-right"></div> </body> </html>
Треугольник влево
[html]<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.triangle-left {
width: 0;
height: 0;
border-top: 25px solid transparent;
border-right: 50px solid #555;
border-bottom: 25px solid transparent;
}
</style>
</head>
<body>
<h2>Tреугольнк влево CSS</h2>
<div class="triangle-left"></div>
</body>
</html>
[/html]
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .triangle-left { width: 0; height: 0; border-top: 25px solid transparent; border-right: 50px solid #555; border-bottom: 25px solid transparent; } </style> </head> <body> <h2>Tреугольник влево CSS</h2> <div class="triangle-left"></div> </body> </html>
[think=http://www.kolobok.us/smiles/standart/yahoo.gif] 😎 Надеюсь Вам поможет данная тема[/think]
- Подпись автора