Fixed responsive layout

Developer
Size
2,485 Kb
Views
8,096

How do I make an fixed responsive layout?

What is a fixed responsive layout? How do you make a fixed responsive layout? This script and codes were developed by 042 on 09 January 2023, Monday.

Fixed responsive layout Previews

Fixed responsive layout - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fixed responsive layout</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Fixed Responsive Layout</h1>
<div class="items"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div>
</div> <script src='https://unpkg.com/bricks.js/dist/bricks.js'></script> <script src="js/index.js"></script>
</body>
</html>

Fixed responsive layout - Script Codes CSS Codes

h1 { text-align: center;
}
.items { width: 960px; width: 100%; margin-left: auto; margin-right: auto;
}
.item { background: red; width: 300px; min-height: 200px;
}
.item:nth-child(3) { min-height: 400px;
}
.item:nth-child(1) { min-height: 140px;
}
@media (min-width: 480px) { .item { width: 300px; }
}
@media (min-width: 640px) { .item { width: 300px; }
}
@media (min-width: 960px) { .item { width: 300px; }
}

Fixed responsive layout - Script Codes JS Codes

"use strict";
var instance = Bricks({ container: ".items", packed: "data-packed", sizes: [{ columns: 1, gutter: 30 }, { mq: "500px", columns: 1, gutter: 30 }, { mq: "660px", columns: 2, gutter: 30 }, { mq: "960px", columns: 3, gutter: 30 }]
});
instance.resize(true);
instance.pack();
Fixed responsive layout - Script Codes
Fixed responsive layout - Script Codes
Home Page Home
Developer 042
Username 042
Uploaded January 09, 2023
Rating 3
Size 2,485 Kb
Views 8,096
Do you need developer help for Fixed responsive layout?

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!

042 (042) Script Codes
Create amazing blog posts with AI!

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!