Colors and Media Queries
How do I make an colors and media queries?
As you resize the window, you get the perfect number of colors per row, with no gaps. Responsive!. What is a colors and media queries? How do you make a colors and media queries? This script and codes were developed by Ty Strong on 11 August 2022, Thursday.
Colors and Media Queries - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Colors and Media Queries</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Oswald:400,700);
body { color: #fff; margin: 0; font-size: 30px; font-family: 'Oswald', sans-serif;
}
h1 { color: #333; margin-left: 14px; font-size: 5vw;
}
div { box-sizing: border-box; white-space: nowrap; float: left; width: 16.666%; height: 140px; padding: 14px; box-shadow: inset 0 0 0 7px rgba(255,255,255,0.2); overflow: hidden;
}
@media (max-width: 1100px) {div {width: 20%;}}
@media (max-width: 900px) {div {width: 25%;} h1 {font-size: 1.5em;}}
@media (max-width: 740px) {div {width: 33.33%;}}
@media (max-width: 560px) {div {width: 50%;}}
@media (max-width: 440px) {div {width: 100%;} h1 {display: none;}}
div:nth-child(2) {background: #DA4453;}
div:nth-child(3) {background: #F6BB42;}
div:nth-child(4) {background: #3BAFDA;}
div:nth-child(5) {background: #4A89DC;}
div:nth-child(6) {background: #E9573F;}
div:nth-child(7) {background: #37BC9B;}
div:nth-child(8) {background: #D770AD;}
div:nth-child(9) {background: #8CC152;}
div:nth-child(10) {background: #967ADC;}
div:nth-child(11) {background: #E6E9ED; color: #333;}
div:nth-child(12) {background: #AAB2BD; color: #333;}
div:nth-child(13) {background: #434A54;} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1> Colors | Media Queries
</h1>
<div> Grapefruit
</div>
<div> Sunflower
</div>
<div> Aqua
</div>
<div> Blue Jeans
</div>
<div> Bittersweet
</div>
<div> Mint
</div>
<div> Pink Rose
</div>
<div> Grass
</div>
<div> Lavender
</div>
<div> Light Gray
</div>
<div> Medium Gray
</div>
<div> Dark Gray
</div> <script src="js/index.js"></script>
</body>
</html>
Colors and Media Queries - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Oswald:400,700);
body { color: #fff; margin: 0; font-size: 30px; font-family: 'Oswald', sans-serif;
}
h1 { color: #333; margin-left: 14px; font-size: 5vw;
}
div { box-sizing: border-box; white-space: nowrap; float: left; width: 16.666%; height: 140px; padding: 14px; box-shadow: inset 0 0 0 7px rgba(255,255,255,0.2); overflow: hidden;
}
@media (max-width: 1100px) {div {width: 20%;}}
@media (max-width: 900px) {div {width: 25%;} h1 {font-size: 1.5em;}}
@media (max-width: 740px) {div {width: 33.33%;}}
@media (max-width: 560px) {div {width: 50%;}}
@media (max-width: 440px) {div {width: 100%;} h1 {display: none;}}
div:nth-child(2) {background: #DA4453;}
div:nth-child(3) {background: #F6BB42;}
div:nth-child(4) {background: #3BAFDA;}
div:nth-child(5) {background: #4A89DC;}
div:nth-child(6) {background: #E9573F;}
div:nth-child(7) {background: #37BC9B;}
div:nth-child(8) {background: #D770AD;}
div:nth-child(9) {background: #8CC152;}
div:nth-child(10) {background: #967ADC;}
div:nth-child(11) {background: #E6E9ED; color: #333;}
div:nth-child(12) {background: #AAB2BD; color: #333;}
div:nth-child(13) {background: #434A54;}
Colors and Media Queries - Script Codes JS Codes
// colors by http://codepen.io/devi8/pen/lvIeh
// I use their colors quite often.
Developer | Ty Strong |
Username | tystrong |
Uploaded | August 11, 2022 |
Rating | 4 |
Size | 2,952 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Logo with Slim and SCSS | 3,120 Kb |
New Personal Page | 3,510 Kb |
Social Network Messages | 3,195 Kb |
Beautiful Round Shadow | 3,330 Kb |
8-Bit Mario | 4,477 Kb |
Updated Personal Page | 3,682 Kb |
CSS Spinner | 2,289 Kb |
CSS Laptop | 2,987 Kb |
The Greatest. | 1,723 Kb |
Rolling Circle | 1,942 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Cut and Paste Roll Link | BottomlineInteractive | 2,546 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Two joint circles - One element | Berdejitendra | 1,704 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
Twitch | SarahDunlap | 2,937 Kb |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!