Topic: Making page adapt to monitor resolution |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: |
posted 11-01-2011 02:50
I have a to make web page containing 2 columns. This is done. |
Obsessive-Compulsive (I) Inmate From: Here |
posted 11-01-2011 21:19
You already give the answer in your post. Use percentages for size. code: [Doctype declaration] <html> <head> <title> 2 column page </title> <link rel="stylesheet" type="text/css" href="theme.css" /> </head> <body> <div id="container"> <div id="column1"> <!-- Content of column1 goes here --> Column1 </div> <div id="column2"> <!-- Content of column2 goes here --> Column2 </div> </div> <!-- End of Container div --> </body> </html>
code: /* theme.css */ html, body, #container { margin:0; padding:0; /* reset padding and margin to Zero to avoid problems */ width: 100%; } #column1 { width: 19%; background-color: white; float: left} #column2 { width: 79% ; background-color:black; float:left } /*end of file */
|
Bipolar (III) Inmate From: Vancouver, BC |
posted 05-22-2012 20:47 |