FULL STACK   ·   UI   ·   UX   ·   GRAPHICS   ·   DEVELOPER   ·   INSTRUCTOR

Adam Khoury

Donate funds to show love and support

Click the button below to donate funds securely online. You can use your PayPal account or a credit card.

Your donations help free up my time to produce more content and assist in covering server costs. It's also a great way to say thanks for the content!

Application Configuration

Adam will be adding options here soon.

Responsive Web Design Made Simple CSS media Rule Tutorial

Published :
Author :
Adam Khoury
Learn the CSS @media rule and the easiest way to make a responsive and mobile-friendly website layout. <style> body{margin:0px;} #box1{ margin: 0px auto; width:1000px; height:400px; background: pink; padding:20px; } @media screen and (max-width: 768px) { #box1{ margin: 0px auto; width:98%; height:400px; background: #B3D9FF; padding:1%; } #box1 h2{ font-size:0.9em; } #box1 p{ font-size:0.7em; } } </style> <div id="box1"> <h2>My web site</h2> <p>Blah blah blah...</p> </div>