programming-examples/css/Div border-top-width.html

45 lines
1.4 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 Border Top Width</title>
<style type='text/css'>
div {
padding: 4px;
border-color: pink;
border-style: solid;
background: aqua;
margin: 4px;
float: left;
width: 200px;
height: 200px;
}
div#properties {
border-top-width: 3px;
border-right-width: 4px;
border-bottom-width: 9px;
border-left-width: 12px;
}
div#four {
border-width: 4px 8px 12px 10px;
}
div#three {
border-width: 8px 4px 8px;
}
div#two {
border-width: 12px 4px;
}
div#one {
border-width: 4px;
}
</style>
</head>
<body>
<div id='properties'>One's first love is always perfect until one meets one's second love. Elizabeth Aston</div>
<div id='four'>One's first love is always perfect until one meets one's second love. Elizabeth Aston</div>
<div id='three'>One's first love is always perfect until one meets one's second love. Elizabeth Aston</div>
<div id='two'>One's first love is always perfect until one meets one's second love. Elizabeth Aston</div>
<div id='one'>One's first love is always perfect until one meets one's second love. Elizabeth Aston</div>
</body>
</html>