Wednesday, July 31, 2013

Div Layout Source


<html>
<head>
<title>
Div Tags Layout
</title>
<style type="text/css">
.A {
  background-color: blue;
  height: 500px;
  width:400px;
}
.B {
  height:100px;
}
.B2 {
  background-color: red;
  height: 100px;
  width: 100px;
  float: left;
}
.C {
  float: left;
}
.D {
  height: 40px;
  width: 40px;
  float:left;
  background-color: yellow;
}
.E {
  height: 50px;
  width: 10px;
  position: relative;
  left: -10px;
  margin-right: -11px;
  background-color: black;
  float: left;
}
</style>
</head>
<body>
<center>
<div class="A">
  <div class="C">
    <div class="B">
      <div class="B2">
</div>
<div class="B2">
</div>
<div class="E">
</div>
<div class="C">
        <div class="D">
</div>
</div>
</div>
</div>
</div>
</center>
</body>
</html>

No comments:

Post a Comment