Jump to content

How to create fullpage & fixed sidebar


cmw0ng

Recommended Posts

Try this :)

<html><head><style type='text/css'>   html, body {height: 100%; margin: 0}   #content {width: 100%; height: 100%}   #left {width: 100px; height: 100%; float: left; background-color: red}   #right {margin-left: 100px; height: 100%; background-color: green}</style></head><body><div id='content'>   <div id='left'>Testing</div>   <div id='right'>Testing</div></div></body></html>

  • Like 1
Link to comment
Share on other sites

Try this :)
<html><head><style type='text/css'>   html, body {height: 100%; margin: 0}   #content {width: 100%; height: 100%}   #left {width: 100px; height: 100%; float: left; background-color: red}   #right {margin-left: 100px; height: 100%; background-color: green}</style></head><body><div id='content'>   <div id='left'>Testing</div>   <div id='right'>Testing</div></div></body></html>

Thank you so much!! Works well! :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...