El (Display: Block Text-Align: Center ) : ST ND
El (Display: Block Text-Align: Center ) : ST ND
way to add Gutters eg. 1st Col = 66.66% 2nd Col = 33.33%
=>Add Padding to Children of these Cols (then you dont have to do difficult Maths on the Cols (w/ %s) - ALSO = New Box Model (approx 1yr from Full Implementation) => box-sizing Prop (w/ border-box, etc) MINUSES P/M from the Width (instead of Current Method of Adding M/P to Width) *Adding a #Wrapper to the L/O apart from its worth 4 Centring a L/O = Also handy for Adding a BG-Img 4 L/O *Min-Width => div { width: 90%; min-width: 400px; max-width: 800px;}
= Div will be 90% - as long as Div is between above measurements *If you have Width: 100% - on a Div Padding/Margin = will be Added to 100% & NO Width on Div Padding/Margin = will be Subtracted from 100% *When using <li> - to Layout = NO Need to Position Child Els - ALL of them Get their Own Line <li> <h3>Styx</h3> <img src="images/adopt1.jpg" alt=""> <p>Shorthair, black</p> <p>Male, 2 years</p> </li> ALL Els = just Containers thats Size (by Default) = Determined by its Content A lot (if not most) L/O probs (Els Dissapearing, etc) = Caused by = 1. Width (El too Wide) or 2. Height probs as well as 3. Syntax Errors & 4. B Bugs