Newbie question.

Why is it that there's a bazillion different types of screws? Why can't we just always use one standard screw type? Are there advantages/disadvantages to the different types? Are there times when one type is preferred over another?

Help me understand why there isn't one screw to rule them all.


Question: 2 divs both 100% next to each other
Answer: you should use display: inline-block; instead of float anf then wrap all five divs in another container or use the body element and add white-space: nowrap to it.

If the design is incredibly pixel perfect, you can remove the actual "word-spacing"  between the inline-blocks by removing the whitespace in the HTML or by giving them a negative right margin of about 0.25em; but if scrolling to new "page" you dn't notice it anyway..

Example Fiddle

HTML Code:

&lt;div class="container" id="p1"&gt;Page 1 =&gt; &lt;a href="#p2"&gt;Next page&lt;/a&gt;&lt;/div&gt;
&lt;div class="container" id="p2"&gt;Page 2 =&gt; &lt;a href="#p3"&gt;Next page&lt;/a&gt;&lt;/div&gt;
&lt;div class="container" id="p3"&gt;Page 3 =&gt; &lt;a href="#p4"&gt;Next page&lt;/a&gt;&lt;/div&gt;
&lt;div class="container" id="p4"&gt;Page 4 =&gt; &lt;a href="#p5"&gt;Next page&lt;/a&gt;&lt;/div&gt;
&lt;div class="container" id="p5"&gt;Page 5 =&gt; &lt;a href="#p1"&gt;Next page&lt;/a&gt;&lt;/div&gt; 


CSS:

html, body {margin: 0; padding: 0; height: 100%;}

body {white-space: nowrap;}

.container {
   display: inline-block;
   width: 100%;
   height: 100%;
}

.container {
   display: inline !ie7; /* for working inline-blocks in IE7 and below */
}

.container * {white-space: normal;}

#p1 {background: #fcf;}
#p2 {background: #ff0;}
#p3 {background: #cfc;}
#p4 {background: #abc;}
#p5 {background: #cba;}