JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<title>
Задание 3. Блок с градиентом
</title>
<link type = "text/css" rel = "stylesheet" href = "style.css">
<!--[if IE]>
<script src = "http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div>
<section>
<h1>
Заголовок
<i></i>
</h1>
<p>
Содержимое
</p>
</section>
</div>
</body>
</html>
CSS
*
{
margin: 0;
padding: 0;
font-size: 100%;
}
html
{
font: 125% arial, sans-serif;
background: url(http://scrapmania.ru/images/1220148.jpg);
}
body
{
font-size: 50%; /* 10px */
padding: 10px;
}
div,
section
{
border-radius: 5px;
}
div
{
border: 2px solid #003C2A;
background: -moz-linear-gradient(top, rgba(103, 212, 187, 0.5), rgba(92, 165, 149, 0.5));
background: -webkit-gradient(linear, left top, left bottom, from(rgba(103, 212, 187, 0.5)), to(rgba(92, 165, 149, 0.5)));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgba(103, 212, 187, 0.5)', endColorstr='rgba(92, 165, 149, 0.5)');
padding: 8px;
}
section
{
display: block;
min-height: 100px;
background-color: #FFFFFF;
border: 1px solid #003C2A;
}
h1
{
background-color: #FFC400;
font: 1.8em normal;
border-radius: 5px 5px 0 0;
position: relative;
padding: 6px 10px;
}
h1 i
{
display: block;
position: absolute;
left: 6px;
bottom: -10px;
border-color: #FFC400 transparent transparent transparent;
border-style: solid;
border-width: 10px 10px 0 10px;
height: 0px;
width: 0px;
}
p
{
font-size: 1.4em;
padding: 12px 10px 6px;
}