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: 722 |
Share it: |



Write a comment