Forum Moderators: coopster
How to make CSS layout like google to have top part as 100% width with padding but middle part resize with sceen resolution.
Is this pure CSS skills or I have to use Javascript code to defined sceen resolution?
If you use 15'4 laptop is middle part different from 17'' as it seems it is moving larger and not fixed width.
The only other way I know of is via ActiveX and the user has to allow you to execute the actions to read the system settings.
My guess is you want something like
<style>
body{
text-align:center;
margin:0px;
padding:0px
}
#header{
width:100%;
height:50px;
float:left;
background:red;
text-align:left;
}
#header .left{
float:left; color:white;
}
#header .right{
float:right; color:blue;
}
#cont{
margin:100 auto;}
</style>
</head>
<body>
<div id="header">
<span class="left">
left
</span>
<span class="right">
right
</span>
fdsg</div>
<div id="cont">
CONTENT
</div>
</body>
Is that what you're after?