You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css.html
+27-16Lines changed: 27 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -106,17 +106,22 @@ <h2>1. float</h2>
106
106
<p><strong>Question:</strong> How float works?</p>
107
107
<p><strong>Answer:</strong> float is to push element on a side of a page with text wrap around it. you can create entire page or litter area by using float. if size of a floated element changes, text around it will reflow to accomodate the changes. You can have float left, right, none or inherit.</p>
108
108
<p> if you set, 'float: left;' for an image, it will move to the left until the margin, padding or border of another block-level element is reached. The normal flow will wrap around on the right side.</p>
<p>If interviewer wants to ask one question about css, that would be most likely about float</a>.</p>
121
126
<p><strong>extra:</strong> read the positioning constraints in <ahref="http://www.w3.org/TR/CSS1/#floating-elements">W3.org: floating elements</a>.</p>
<p><strong>Question:</strong> When will you use clear?</p>
127
132
<p><strong>Answer:</strong> floating elements will not be accepted on the side you cleared. With 'clear' set to 'left', an element will be moved below any floating element on the left side. clear is used to stop wrap of an element around a floating element. .</p>
0 commit comments