Skip to main content

3 column layout css


here is demo css code for 3 columns layout.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>3 columns css demo</title>

<style type="text/css">

<!--

#block_1

{

float: left;

width: 50%;

margin-left: 20%;

}

* html #block_1

{

display: inline;

}

#block_2

{

float: left;

width: 20%;

margin-left: -70%;

}

#block_3

{

float: left;

width: 30%;

}

#block_1, #block_2, #block_3

{

padding-bottom: 32767px !important;

margin-bottom: -32767px !important;

}




#wrapper

{

overflow: hidden;

}


/* easy clearing */

#wrapper:after

{

content: '[DO NOT LEAVE IT IS NOT REAL]';

display: block;

height: 0;

clear: both;

visibility: hidden;

}

#wrapper

{

display: inline-block;

}


#wrapper

{

display: block;

}

#footer

{

clear: both;

}


.all{ background-color:#006666;}

.blue{ background-color:#0066FF;}

.red{ background-color:#FF0000;}

-->

</style>

</head>


<body>

<div class="all">

<div id="wrapper">

<div id="block_1" >

<p>center column</p>


<p>center column</p>

</div>

<div id="block_2" class="blue" >

<p>left column</p>

<p>&nbsp;</p>


<p>&nbsp;</p>

<p>&nbsp;</p>

<p>left column</p>

</div>

<div id="block_3" class="red"> right column</div>

</div>


</div>

<div id="footer">footer</div>

</body>

</html>

Popular posts from this blog

Web synchronization option for merge replication

http://msdn2.microsoft.com/en-us/library/ms151319.aspx SQL Server 2005 Books Online Implementing Replication over the Internet Replicating data over the Internet allows remote, disconnected users to access data when they need it using a connection to the Internet. Replicate data over the Internet using: A Virtual Private Network (VPN). For more information, see Publishing Data over the Internet Using VPN . The Web synchronization option for merge replication. For more information, see Web Synchronization for Merge Replication . All types of Microsoft SQL Server replication can replicate data over a VPN, but you should consider Web synchronization if you are using merge replication.

Request Signatures in Blackberry

Request Signatures in Blackberry need copy sigtool.db, sigtool.csk to SDK/component/Bin folder for example V 4.2.1 ../eclipse\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\bin