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,705
Replies
3
Views
3,783
Replies
2
Views
2,700
Latest threads
Hi
Replies
1
Views
44
Replies
1
Views
43
Replies
1
Views
45
Replies
1
Views
45
Recommended threads
Replies
4
Views
2,760
Replies
53
Views
46,356
Replies
1
Views
1,970
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