programming-examples/css/Div tag display none.html

41 lines
947 B
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">
<head>
<title>Display None</title>
<style type="text/css">
.container{
position: relative;
width: 900px;
height: 600px;
background: blue;
}
* .box {
float: right;
overflow: auto;
visibility: visible;
width: auto;
height: 240px;
margin: 12px;
padding: 12px;
background: pink;
}
* .small {
display:none;
padding-left: 12px;
background: blue;
}
</style>
</head>
<body>
<div class="container">
<div class="small">Honesty is the only way with anyone,<br>
when you'll be so close as to be living inside each other's skins.<br><br>
Lois McMaster Bujold<br><br>
Love Love Love</div>
<div class="box">Love Sayings</div>
</div>
</body>
</html>