programming-examples/css/Div float left padding margin border style.html

45 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:subLang='en'>
<head>
<title>Div Float Left Padding Margin Border Style</title>
<style type='text/css'>
div {
padding: 2px;
border-color: red;
border-style: solid;
background: aqua;
margin: 4px;
float: left;
width: 200px;
height: 10px;
}
div#properties {
border-top-width: 3px;
border-right-width: 5px;
border-bottom-width: 8px;
border-left-width: 12px;
}
div#four {
border-width: 6px 4px 8px 10px;
}
div#three {
border-width: 8px 4px 6px;
}
div#two {
border-width: 12px 8px;
}
div#one {
border-width: 4px;
}
</style>
</head>
<body>
<div id='properties'>A woman is always a mystery: one must not be fooled by her face and her hearts inspiration. E. De Amicis</div>
<div id='four'>A woman is always a mystery: one must not be fooled by her face and her hearts inspiration. E. De Amicis</div>
<div id='three'>A woman is always a mystery: one must not be fooled by her face and her hearts inspiration. E. De Amicis</div>
<div id='two'>A woman is always a mystery: one must not be fooled by her face and her hearts inspiration. E. De Amicis</div>
<div id='one'>A woman is always a mystery: one must not be fooled by her face and her hearts inspiration. E. De Amicis</div>
</body>
</html>