ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am redesigning saratogateen.com and i have a test page (saratogateen.com/test.html).
I have a design problem that I don't think I'll be able to explain clearly. If you look at the test page, the css div on the right is supposed to automatically resize itself to the size of the div on the left. The left hand size is supposed to contain announcements and the right hand side is supposed to contain a scrollable div. But is there some javascript to resize the left hand div automatically? thanks in advance
Why not just tell each box to be 50% of the total width? No need to mess with javascript there, if I am understanding you right. Check out the CSS width property.
Also, not relevant to the question, but it wouldn't hurt to fix all the invalid HTML too.
not quite sure which is meant to follow width. there's no real nice to way to change a width based on an implicat calculation of the height... you could do that with dynamic css, based on javascript possibly, if that's what you mean. if you want content to automatically scroll, i saw a design on owsd.org which did fix a div at a certain height, forcing it to scroll. stil not too sure that you're really after though.
what i'm thinking of is this: the div on the left is set to have its css-height at automatic, and its width is set to about 2/3, however I'm looking for some way to have the div on the right base its height on the other one...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.