CodeLab
Show Output
 
xxxxxxxxxx
30
 
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="utf-8">
5
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6
<meta name="viewport" content="width=device-width, initial-scale=1">
7
<title>Example of Bootstrap 3 Clearfix</title>
8
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
9
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
10
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
11
<style type="text/css">
12
    .wrapper{
13
        margin: 20px;
14
        padding: 10px;
15
        background: #fffacd;
16
        border: 1px solid #000;
17
    }
18
    .pull-left, .pull-right{
19
        padding: 20px;
20
        background: #e3b740;
21
    }
22
</style>
23
</head> 
24
<body>
25
<div class="wrapper clearfix">
26
    <div class="pull-left">Float to left</div>
27
    <div class="pull-right">Float to right</div>
28
</div>
29
</body>
30
</html>
 
Switch to SQL Mode

Share this example with Facebook, Twitter, Gmail. Please give us a Like, if you find it helpful.