CSS: dynamic Icon Window -


i trying make site sorta desktop app...it sorta resemble program manager windows 3.1 except need icon groups resize , tile depending on number of icons have , how space need. don't need take 100% of space inside, @ leastmake 2 - 3 columns , fill in empty spaces , n o need fixed widths.

what getting enter image description here

what trying for

enter image description here

body   {  	padding: 5px;  	height: 99%;  	margin: 0;  }  #mainwin  {  	border-color: black;  	border-width: 1px;  	border-style: solid;  	border-radius: 10px;  	display: table;  	width: 100%;  	height: 100%;  }  #titlebar  {  	background-color: blue;  	border-top-left-radius: 9px;  	border-top-right-radius: 9px;  	text-align: center;  	height: 17px;  	padding: 2px;  	color: white;  	display: table-cell;  	width: 100%;  }  #wrapper   {  	border: solid black 1px;  	display: table-row;  	height: 100%;  	padding:5px  }  #cellwrapper  {  	padding: 5px;  	display: table-cell;  }  #statusbar  {  	background-color: lightgray;  	border-bottom-left-radius: 9px;  	border-bottom-right-radius: 9px;  	height: 17px;  	padding: 2px 2px 2px 10px;  	color: black;  	display: table-cell;  }    .window  {  	border-color: black;  	border-width: 1px;  	border-style: solid;  	border-radius: 10px;  	display: table;  	width: 45%;  	margin:5px;  }  .titlewindow  {  	background-color: blue;  	border-top-left-radius: 9px;  	border-top-right-radius: 9px;  	text-align: center;  	height: 17px;  	padding: 2px;  	color: white;  	display: table-cell;  	width: 100%;  }  .wrapwindow   {  	border: solid black 1px;  	display: table-row;  	height: 100%;  	padding:5px  }  .wrapcellwindow  {  	padding: 5px;  	display: table-cell;  }  .stauswindow  {  	background-color: lightgray;  	border-bottom-left-radius: 9px;  	border-bottom-right-radius: 9px;  	height: 17px;  	padding: 2px 2px 2px 10px;  	color: black;  	display: table-cell;  }
<html xmlns="http://www.w3.org/1999/xhtml">  <head runat="server">  	<title></title>  	<link href="/css/service.css" rel="stylesheet" />  </head>  <body>  	<form id="form1">  	<div id="mainwin">  		<div id="titlebar">  			consumer lawncare inventory tracking system  		</div>  		<div id="wrapper">  			<div id="cellwrapper">  				<div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 1 <br />qweqweq<br />qweq<br />qwe<br />qweqw<br /><br />qweqweqwe<br />qweqweqwe<br />qweqweq<br />weqweq  						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>  				<div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 2   						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>                <div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 3   						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>  			</div>  		</div>  		<div id="statusbar">  			ready  		</div>  	<div>  	</form>  </body>  </html>

add float: left; .window

body   {  	padding: 5px;  	height: 99%;  	margin: 0;  }  #mainwin  {  	border-color: black;  	border-width: 1px;  	border-style: solid;  	border-radius: 10px;  	display: table;  	width: 100%;  	height: 100%;  }  #titlebar  {  	background-color: blue;  	border-top-left-radius: 9px;  	border-top-right-radius: 9px;  	text-align: center;  	height: 17px;  	padding: 2px;  	color: white;  	display: table-cell;  	width: 100%;  }  #wrapper   {  	border: solid black 1px;  	display: table-row;  	height: 100%;  	padding:5px  }  #cellwrapper  {  	padding: 5px;  	display: table-cell;  }  #statusbar  {  	background-color: lightgray;  	border-bottom-left-radius: 9px;  	border-bottom-right-radius: 9px;  	height: 17px;  	padding: 2px 2px 2px 10px;  	color: black;  	display: table-cell;  }    .window  {  	border-color: black;  	border-width: 1px;  	border-style: solid;  	border-radius: 10px;  	display: table;  	width: 45%;  	margin:5px;      float: left; <!---here--->  }  .titlewindow  {  	background-color: blue;  	border-top-left-radius: 9px;  	border-top-right-radius: 9px;  	text-align: center;  	height: 17px;  	padding: 2px;  	color: white;  	display: table-cell;  	width: 100%;  }  .wrapwindow   {  	border: solid black 1px;  	display: table-row;  	height: 100%;  	padding:5px  }  .wrapcellwindow  {  	padding: 5px;  	display: table-cell;  }  .stauswindow  {  	background-color: lightgray;  	border-bottom-left-radius: 9px;  	border-bottom-right-radius: 9px;  	height: 17px;  	padding: 2px 2px 2px 10px;  	color: black;  	display: table-cell;  }
<html xmlns="http://www.w3.org/1999/xhtml">  <head runat="server">  	<title></title>  	<link href="/css/service.css" rel="stylesheet" />  </head>  <body>  	<form id="form1">  	<div id="mainwin">  		<div id="titlebar">  			consumer lawncare inventory tracking system  		</div>  		<div id="wrapper">  			<div id="cellwrapper">  				<div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 1 <br />qweqweq<br />qweq<br />qwe<br />qweqw<br /><br />qweqweqwe<br />qweqweqwe<br />qweqweq<br />weqweq  						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>  				<div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 2   						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>                <div class="window">  					<div class="titlewindow">  						some window  					</div>  					<div class="wrapwindow">  						<div class="wrapcellwindow">  							the inside 3   						</div>  					</div>  					<div class="stauswindow">  						some status bar  					</div>  				</div>  			</div>  		</div>  		<div id="statusbar">  			ready  		</div>  	<div>  	</form>  </body>  </html>


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -