How To Use Float And Clear.
Answers (1)
Add AnswerFor float :
float is a positioning property in css used to float an element to the left or right corner of parent element and the next element or text wrapping around the left or right to it .
Example :
<style> img{ float: left; } </style>
try this syntax :-
float: none | left | right | initial | inherit;
For clear :
clear property is used to stop next element to wrap around the adjacent floating elements. Clear can have clear left,right and both values.
Example :
<style> img{ clear: both; } </style>
try this syntax :-
clear: none| right| left | both;