-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-float-V2.css
55 lines (51 loc) · 962 Bytes
/
css-float-V2.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
h2{
text-align: center;
}
code{
color:white;
background: darkviolet;
border-radius: 6px;
padding: 25px 20px;
display: block; /* takes up the full width available */
/* display: inline-block; takes up the only necessary width available */
text-align: center;
}
.default{
background:none;
color: blue;
}
.group:before,
.group:after{
content: "";
display: table; /*much like block-level elements*/
}
.group:after{
clear: both;
}
.group{
background: chartreuse;
border-radius: 16px;
clear: both;
*zoom: 1; /*scale for IE*/
}
.group,header,section,aside,footer{
margin: 0 1.5% 23px 1.5%;
}
section{
float: left;
width: 60%;
}
aside{
float: right;
width: 33%;
}
footer{
clear: both;
/*Clearing floats is accomplished using the clear property,must use it after floating element*/
margin-bottom: 0;
}
.logo {
border-top: 4px solid #648880;
padding: 40px 0 22px 0;
float: left;
}