Fluid containers

Developer
Size
1,992 Kb
Views
46,552

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 Previews

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];
}
Fluid containers - Script Codes
Fluid containers - Script Codes
Home Page Home
Developer Taha
Username tkazi
Uploaded August 28, 2022
Rating 3
Size 1,992 Kb
Views 46,552
Do you need developer help for Fluid containers?

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!

Taha (tkazi) Script Codes
Name
Tie
Spotify api
Hangman gam
Wordsearch
Youtube_api
Vogel.photo
A Pen by taha
Topics with pictures
Create amazing captions 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!