how to say clear to float left and float right in website designing?

arronmattwills

New member
Joined
Dec 23, 2013
Messages
322
Points
0
Clear is the most useful css property in web design field.
It will be used in float conditions.
If you say one div has to move to left side and we have a sidebar on right side that sidebar has to move to right side with some width then the next design part should be cleared.

After saying float left and float right then we should take one more extra div apply a class called clear. The clear class syntax will be like this:

.clear {
Clear: both;
}
 

yestyle

New member
Joined
Jul 1, 2012
Messages
189
Points
0
Using Clear: both; is very useful in web design & development. I used this class more time in more web templates that I made. If I don't use Clear: both; some my web layouts may be broken.
 

Darby

New member
Joined
Feb 24, 2014
Messages
21
Points
0
I've used this category at more periods of time in more web layouts that I've developed. If I don't use Clear: both; some of my web layouts may be damaged.
 

ravemediaph_ronnie

New member
Joined
Mar 28, 2014
Messages
34
Points
0
i also love to use this code below to clear all floated div inside the elements.

#wrapper:after{
content: "";
display:block;
clear: left;
}
 

GarryKerr

New member
Joined
Apr 11, 2014
Messages
32
Points
0
Hello
Yes clear plays important role in designing. I am a professional designer and make web designs using HTML and CSS. I use code to clear the div or to move left or right
#wrapper{
.main{
margin:...px;
clear: right;
}
}
 
Older threads
Newer threads
Replies
17
Views
6,649
Replies
3
Views
3,740
Replies
2
Views
2,672
Latest threads
Replies
1
Views
39
Replies
1
Views
197
Replies
0
Views
208
Replies
0
Views
241
Replies
5
Views
558
Recommended threads
Replies
21
Views
7,657
Replies
8
Views
1,889
Replies
0
Views
2,233
Replies
6
Views
2,898
Similar threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top