LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-01-2004, 12:30 PM   #1
retrodict
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
html/css


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
 
Old 11-01-2004, 01:34 PM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 45
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.
 
Old 11-01-2004, 01:53 PM   #3
retrodict
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Original Poster
Rep: Reputation: 0
well, its not the width that vexes me its the height
 
Old 11-01-2004, 02:40 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
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.
 
Old 11-01-2004, 04:35 PM   #5
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 45
Well, if it's height you want, you can use the CSS height property.
 
Old 11-01-2004, 06:56 PM   #6
retrodict
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A little HTML/CSS help? jon_k General 9 07-17-2005 01:49 AM
html/css hylke Programming 0 06-27-2004 02:39 PM
CSS / HTML in Mozilla jpbarto Programming 4 04-26-2004 08:08 PM
html/css problemo tearinox Programming 4 01-26-2004 02:45 PM
Positioning with CSS in HTML PhilD Programming 7 08-26-2003 10:49 AM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration