cmw0ng Posted August 29, 2012 Share Posted August 29, 2012 How to create fullpage & fixed sidebar like below example? Link to comment Share on other sites More sharing options...
smiles Posted August 29, 2012 Share Posted August 29, 2012 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> 1 Link to comment Share on other sites More sharing options...
cmw0ng Posted August 29, 2012 Author Share Posted August 29, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now