Fluid containers
How do I make an fluid containers?
What is a fluid containers? How do you make a fluid containers? This script and codes were developed by Taha on 28 August 2022, Sunday.
Fluid containers - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>fluid containers</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container">
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Fluid containers - Script Codes CSS Codes
body, html { background: #C4C6B6; height:100%; width:100%;
}
.container { border:1px solid; height:98%; text-align:center; overflow:auto;
}
.subcontainer { border:1px solid blue; /display:inline-block; float:left;
}
Fluid containers - Script Codes JS Codes
var width = [25, 30, 35, 40];
var height = [30, 35, 40, 45, 50];
width_end = [];
width_total = 0;
for (i = 0; i < 9; i++) { var css = random_css(); var w = css[0]; var h = css[1] width_end.push(w); for (j=0;j<width_end.length;j++){ width_total = width_total + width_end[j] console.log(width_end[j], width_total); } $(".container").append("<div class='subcontainer sub"+i+"'></div>"); $(".sub"+i).css({ "height": "" + h + "%", "width": "" + w + "%" });
}
function random_css() { var w = Math.floor(Math.random() * width.length); var h = Math.floor(Math.random() * height.length); var width_css = parseInt(width[w]); var height_css = parseInt(height[h]); return [width_css, height_css];
}
Developer | Taha |
Username | tkazi |
Uploaded | August 28, 2022 |
Rating | 3 |
Size | 1,992 Kb |
Views | 46,552 |
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 |
Tie | 2,453 Kb |
Spotify api | 1,505 Kb |
Hangman gam | 2,611 Kb |
Wordsearch | 2,667 Kb |
Youtube_api | 1,563 Kb |
Vogel.photo | 2,399 Kb |
A Pen by taha | 2,844 Kb |
Topics with pictures | 2,091 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 |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Layout 11 | Altynai | 1,690 Kb |
Flat design iframe | Damienpm | 1,819 Kb |
Blog | Rottingroom | 1,430 Kb |
CSS Flip Animation | Bbodine1 | 2,525 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Tic Tac Toe | Volv | 4,862 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!