<!-- The container is a centered 960px --> <div class="container"> <!-- Give column value in word form (one, two..., twelve) --> <div class="twelve columns"> <h1>Full Width Column</h1> </div> <!-- Sweet nested columns cleared with a clearfix class --> <div class="six columns clearfix"> <!-- In nested columns give the first column a class of alpha and the second a class of omega --> <div class="three columns alpha">...</div> <div class="three columns omega">...</div> </div> <!-- Sweet nested columns cleared by wrapping a .row --> <div class="five columns"> <div class="row"> <div class="three columns alpha">...</div> <div class="two columns omega">...</div> </div> </div> <!-- Sweet nested columns cleared by <br class="clear"> --> <div class="five columns"> <div class="three columns alpha">...</div> <div class="two columns omega">...</div> <br class="clear" /> </div> <!-- Can push over by columns --> <div class="five columns offset-by-one"></div> </div>
<!-- Just add .button to an anchor --> <a href="#" class="button">Click Me</a> <!-- Also works on plain button elements --> <button>Click Me</button> <!-- To take up full-width of a container? --> <a href="#" class="full-width button">Click Me</a>
<!-- Standard <ul> with class of "tabs" --> <ul class="tabs"> <!-- Give href an ID value of corresponding "tabs-content" <li>'s --> <li><a class="active" href="#simple">Simple</a></li> <li><a href="#lightweight">Lightweight</a></li> <li><a href="#mobileFriendly">Mobile</a></li> </ul> <!-- Standard <ul> with class of "tabs-content" --> <ul class="tabs-content"> <!-- Give ID that matches HREF of above anchors --> <li class="active" id="simple">The tabs are clean and simple unordered-list markup and basic CSS.</li> <li id="lightweight">The tabs are cross-browser, but don't need a ton of hacky CSS or markup.</li> <li id="mobileFriendly">The tabs work like a charm even on mobile devices.</li> </ul>
/* Smaller than standard 960 (devices and browsers) */ @media only screen and (max-width: 959px) {} /* Tablet Portrait size to standard 960 (devices and browsers) */ @media only screen and (min-width: 768px) and (max-width: 959px) {} /* All Mobile Sizes (devices and browser) */ @media only screen and (max-width: 767px) {} /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ @media only screen and (min-width: 480px) and (max-width: 767px) {} /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ @media only screen and (max-width: 479px) {}
Source: https://habr.com/ru/post/144291/
All Articles