When you give an element a width of 100% in CSS, you’re basically saying “Make this element’s content area exactly equal to the explicit width of its parent — but only if its parent has an explicit width.” So, if you have a parent container that’s 400px wide, a child element given a width of 100% will also be 400px wide, and will still be subject to margins, paddings, and borders — on top of the 100% width setting. The image below attempts to illustrate this:
There’s a reason Kendall Jenner cracks up so hard about those old rumors that she hooked up with Scott Disick, HollywoodLife.com has EXCLUSIVELY learned — and it’s because the whole thing just creeps her out SO much!
MAJOR drama went down between Zellswag and Misster Ray at the ‘LHH: Hollywood’ reunion, and now, the former is owning up to his part in the alleged brawl, while slamming Misster Ray for not doing the same!
Cuteness overload! Kim Kardashian’s precious son Saint West is officially rocking a new ‘do, debuting his adorable cornrows during an ice skating date with his big sister North and mommy dearest on Sept. 21.