Skip to content

Commit 91b835a

Browse files
committed
added overflow example
1 parent 341d62a commit 91b835a

File tree

1 file changed

+58
-11
lines changed

1 file changed

+58
-11
lines changed

css.html

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
}
4646
.clearLeft{
4747
clear:left;
48+
}
49+
.clearBoth{
50+
clear: both;
4851
}
4952
.box{
5053
float: left;
@@ -63,6 +66,33 @@
6366
width: 100px;
6467
background-color: red;
6568
}
69+
.overflowContainer{
70+
height: 280px;
71+
border: 2px solid gray;
72+
padding: 5px;
73+
}
74+
.overflowBox{
75+
padding: 5px;
76+
margin: 5px;
77+
float: left;
78+
border: 2px solid gray;
79+
}
80+
.overflowBox p{
81+
width: 150px;
82+
height: 150px;
83+
}
84+
.overflowVisible{
85+
overflow: visible;
86+
}
87+
.overflowHidden{
88+
overflow: hidden;
89+
}
90+
.overflowScroll{
91+
overflow: scroll;
92+
}
93+
.overflowAuto{
94+
overflow: auto;
95+
}
6696
</style>
6797

6898
<!-- Just for debugging purposes. Don't actually copy this line! -->
@@ -262,24 +292,41 @@ <h2>10. transition</h2>
262292
<p>ref: <a href="http://blog.alexmaccaw.com/css-transitions">all you need to know about css transition</a>, <a href="http://css3.bradshawenterprises.com/transitions/">transition: tutorial</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions">css transition</a>, <a href="http://www.html5rocks.com/en/tutorials/3d/css/">transition and 3D</a></p>
263293

264294
</div>
265-
<div id="mtuli_lang">
266-
<h2>11. pre processor</h2>
267-
<p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p>
268-
<p><strong>Answer:</strong> .</p>
269-
270-
ref: <a href="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
271-
</div>
272295
<div id="svg_canvas">
273-
<h2>12. overflow</h2>
296+
<h2>11. overflow</h2>
274297
<p><strong>Question:</strong> Describe Overflow</p>
275298
<p><strong>Answer:</strong> overflow property deals with the content if content size exceeds the allocated size for the content. You can make extra content visible, hidden, scroll or auto (viewport default behavior).</p>
276299
<p><strong>Question:</strong> Does overflow: hidden create a new block formatting context?</p>
277-
<pre><code>
278-
&lt;style&gt;<br/> div {<br/> overflow: hidden;<br/> }<br/> p {<br/> float: left;<br/> }<br/>&lt;/style&gt;<br/>&lt;div&gt;<br/> &lt;p&gt;I am floated&lt;/p&gt;<br/> &lt;p&gt;So am I&lt;/p&gt;<br/>&lt;/div&gt;<br/>
279-
</code></pre>
280300
<p><strong>Answer:</strong> yes</p>
301+
<div>
302+
<button id = "overflow" type="button" class="toggleExample btn btn-primary">show example</button>
303+
<div id="overflowExample" class="hide">
304+
<div class="overflowContainer">
305+
<div class="overflowBox">
306+
<p class="overflowVisible"><code>overflow:visible</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p>
307+
</div>
308+
<div class="overflowBox">
309+
<p class="overflowHidden"><code>overflow:hidden</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p>
310+
</div>
311+
<div class="overflowBox">
312+
<p class="overflowScroll"><code>overflow:scroll</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p>
313+
</div>
314+
<div class="overflowBox">
315+
<p class="overflowAuto"><code>overflow:auto</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p>
316+
</div>
317+
</div>
318+
</div>
319+
</div>
320+
<br>
281321
<p>ref: <a href="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
282322
</div>
323+
<div id="mtuli_lang">
324+
<h2>12. pre processor</h2>
325+
<p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p>
326+
<p><strong>Answer:</strong> .</p>
327+
328+
ref: <a href="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
329+
</div>
283330
<div id="div_section_article">
284331
<h2>13. only screen</h2>
285332
<p><strong>Question:</strong> What is the use of only?</p>

0 commit comments

Comments
 (0)