User:Ccsmith/sandbox/wiki

What is Flexbox?  Flexbox is a group of CSS3 coding elements that enables you to place objects on a page without having to use, positioning, floating, tables, etc. Flexbox was developed in 2009 to overcome the limitations inherit in positioning, floating, tables, etc. Flexbox uses far fewer lines of code to accomplish what often took many lines to do in the past with positioning, floating, table, etc. But the best benefit is its ability for pages to adapt to whatever devise you are viewing the page, whether it be on a PC or tablet or smart phone.  What do you have to know to code with Flexbox *''We will assume that you have gone through the Wikitext course. It would be even better if you have gone through the HTML course as well, but you should be able understand this for the most part.'' Formatting ability of Flexbox Below is a sample page layout with three boxes with various heights and widths programmed in Flexbox. By moving the right edge of this page you can see how it adapts to the various view ports that could possibility be looking at this page.

MAIN PAGE RESEARCH HELP WIKI HELP GET INVOLVED  As you drag the right edge of this page to the left and you should notice that the "Get Involved" box drops down underneath the MAIN PAGE box. As you continue to move the right edge to the left, the "Wiki Help" box now drops to the bottom alongside of the Get Involved box. <li style="font-size:1vw">If you move the right edge back to the right, the boxes return to their original positions. <li style="font-size:1vw">As you can see, this page will adapted to whatever view port you are seeing this page and that you don't have to scroll back and forth to see everything. <li style="font-size:1vw">Assignment, if you have access to a tablet or smart phone, bring up this page to see how it looks on the view port of either devise.

<h2 style="font-size:1.5vw; background-color:#fcefcf; padding:3px">Try these out

<div style="border-top:10px solid lightgray; border-left:10px solid lightgray; border-right:10px solid lightgray; border-radius:5px;"> Quick Quiz

1. You can see all the stuff on this page on your smart phone just as you see it here? A. True B. False

2. When viewing this page on your smart phone, you do not have to scroll to see all the width? A. True B. False

3. Where might you see the "Get Involved" on your smart phone? A. On the right of "Main Page." B. Under "Main Page." C. Under "Wiki Help." D. None of the above.

4. 4. One of the reasons for Flexbox is to allow a page to be seen more easily on a tablet without scroll bars. A. True B. False

<div style="width:160px; height:20px; padding-top:3px; padding-left:10px; background-color:orange; color:white; border:1px solid orange; border-radius:5px;">Check your answers

Next Chapter >>

<div style="flex:0; order:2; display:flex; align-items:center; justify-content:center; background: linear-gradient(lightgray, white); min-width:200px; height:30px; border:1px solid black; margin-left:-12px">Get Involved in Wiki <div style="width:22px; height:22px; background:linear-gradient(-225deg, lightgray, white); border-bottom:2px solid black; border-left:2px solid black; transform:rotate(45deg)"> <div style="flex:0; order:4; display:flex; align-items:center; justify-content:center; background: linear-gradient(lightgray, white); margin-left:-10px; min-width:200px; height:30px; border:1px solid black">Help:Wiki Help <div style="width:22px; height:22px; background:linear-gradient(-225deg, lightgray, white); border-bottom:2px solid black; border-left:2px solid black; transform:rotate(45deg)">

Main Page Research Help Wiki Help Get Involved

MAIN PAGE RESEARCH HELP WIKI HELP GET INVOLVED

<div style="width: 0; height: 0; border-top: 10px solid transparent; border-left: 10px solid black; border-bottom: 10px solid transparent; float:left; margin-right:10px"> m ! 20:06 Gardendale Alabama Family History Center ( diff | hist ).. (+87) .. Rickgwilliams ( talk | contribs | block )  ( Opening Hours and Charges for copying )  [ rollback 1 edit ] ( Tag Visual edit )

<div style="width:0; height: 0; border-top: 10px solid transparent; border-left: 10px solid black; border-bottom: 10px solid transparent; float:left; margin-right:10px"> m ! 19:20 Artical title (dif | hist) . . (+272)  . .  ccsmith (talk | contribs | block) (summary) [rollback 2 edits] ( Tag Visual edit)

MAIN PAGE RESEARCH HELP WIKI HELP GET INVOLVED