Resizing the Left and Right Containers
Posted by Stan Bogdanov on 08 January 2008 - 19:31Very often we need more space for, say, a reading text and less space for the questions, or vice versa.
See a demo (resize to 600x800 and back to see what happens). Here's a small trick how to achieve this.
Starting out
Create your exercise as usual and open the .htm file in a Text or HTML Editor. Find this codediv.LeftContainer{
...
width: 49.8%;
...
and
div.RightContainer{
...
width: 49.8%;
...
Edit some CSS
Depending on which container you'd like bigger, change the width values accordingly, for instance, to look like this:div.LeftContainer{ ... width: 33.2%; /* adjusted width of the left container -smaller*/ ... |
div.RightContainer{ ... width: 65.8%; /* adjusted width of the right container -bigger */ ... |
That's it. Save the file and view the result.
Rate this:Votes: 1604 |
Share it: |


Write a comment
Posts: 1
Reply #2 on : Mon March 14, 2011, 14:07:59
Posts: 1
Reply #1 on : Sat March 12, 2011, 18:20:12