I have a requirement to make the height of a sidebar grow relative to the height of the main window. I currently have a sidebar that is sized to its content, but the main window is always much longer. Is it possible to (a) determine the height of the main windows (ID="leftside") and (b) make the height of the sidebar (ID="rightside") = leftside.height - 10 ?
Alan_3
0
Newbie Poster
Recommended Answers
Jump to Postyes, this is doable using simple javascript. I had worked on a blog for a friend a while back and helped with a few lines of javascript to resize the shorter column to match the size of the longer column.
there's a demo you can look at with the source …
All 4 Replies
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
designershiv
1
Newbie Poster
Alan_3
0
Newbie Poster
designershiv
1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.