473,769 Members | 6,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to let the height of a div grow automatically with the height ofanother div?

I am new to CSS and I posted this question to the
macromedia.drea mweaver newsgroup yesterday, but unfortunately no one
seems to have a clue. At least no one has responded. So, I am
posting it here and see if I will get any luck.

I have a left div, which contains the navigation menu items, and a
right div, which is the main content area.

I set a background image (repeat-y) for the left div through css's
background: url property.

Now, I want to let the left div grow automatically along with the
right div such that the background image won't stop half way down the
page.

I created a screen shot to illustrate this problem. See below.

http://gnewsgroup.googlepages.com/cssdivheight

Any good idea? Thank you.
Jun 27 '08 #1
5 3401
On 2008-06-23, Author wrote:
I am new to CSS and I posted this question to the
macromedia.drea mweaver newsgroup yesterday, but unfortunately no one
seems to have a clue.
That's why they use Dreamweaver.
At least no one has responded. So, I am
posting it here and see if I will get any luck.

I have a left div, which contains the navigation menu items, and a
right div, which is the main content area.

I set a background image (repeat-y) for the left div through css's
background: url property.

Now, I want to let the left div grow automatically along with the
right div such that the background image won't stop half way down the
page.

I created a screen shot to illustrate this problem. See below.

http://gnewsgroup.googlepages.com/cssdivheight
Post a URL so that we can see the code.

--
Chris F.A. Johnson <http://cfaj.freeshell. org>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Jun 27 '08 #2
In article <58************ *************** @TEKSAVVY.COM>,
"Chris F.A. Johnson" <cf********@gma il.comwrote:
On 2008-06-23, Author wrote:
I am new to CSS and I posted this question to the
macromedia.drea mweaver newsgroup yesterday, but unfortunately no one
seems to have a clue.

That's why they use Dreamweaver.
The original poster's scenario (two columns with equal height)
is a very common one; maybe they're all waiting for someone else
to respond.
At least no one has responded. So, I am
posting it here and see if I will get any luck.

I have a left div, which contains the navigation menu items, and a
right div, which is the main content area.

I set a background image (repeat-y) for the left div through css's
background: url property.

Now, I want to let the left div grow automatically along with the
right div such that the background image won't stop half way down the
page.

I created a screen shot to illustrate this problem. See below.

http://gnewsgroup.googlepages.com/cssdivheight
You can't do this easily with just the two divs (left and right).
You could wrap both in a containing div, and put the background
image on that with repeat-y and no horizontal (x) repeat.

If you (original poster) search for two-column equal height, you'll
probably find lots of other suggestions...
Jun 27 '08 #3

David Stone wrote:
>
The original poster's scenario (two columns with equal height)
is a very common one; maybe they're all waiting for someone else
to respond.
Or maybe they're tired of the same questions over and over again. I know
I am. This one comes up repeatedly. It's been answered repeatedly, too.

It boggles the mind how people can figure out how to post to a
newsgroup, but can't figure out how to search the group archives,
*especially* when they're posting through google groups. :-\

--
Berg
Jun 27 '08 #4
On Jun 23, 6:02 pm, Bergamot <berga...@visi. comwrote:
David Stone wrote:
The original poster's scenario (two columns with equal height)
is a very common one; maybe they're all waiting for someone else
to respond.

Or maybe they're tired of the same questions over and over again. I know
I am. This one comes up repeatedly. It's been answered repeatedly, too.

It boggles the mind how people can figure out how to post to a
newsgroup, but can't figure out how to search the group archives,
*especially* when they're posting through google groups. :-\

--
Berg
Thank you very much for your hint. I did search around, but sometimes
if you don't know the key words to search, you'll have bad luck in
searching. For example, I am new to CSS, and I don't even know what
this concept is called. David Stone has nicely suggested search key
words which is absolutely helpful. Thanks a lot David.

Once my electric garbage disposal sink went bad, but at that time, I
did not know what this stuff is called. And I wanted to buy a part to
replace this thing. I wanted to do a google-search, but did not know
what key words to use, although I consider myself a good googler.

Let me search for two columns equal height and see what happens.
Jun 27 '08 #5
In article
<6a************ *************** *******@8g2000h se.googlegroups .com>,
Author <gn********@gma il.comwrote:
I am new to CSS and I posted this question to the
macromedia.drea mweaver newsgroup yesterday, but unfortunately no one
seems to have a clue. At least no one has responded. So, I am
posting it here and see if I will get any luck.

I have a left div, which contains the navigation menu items, and a
right div, which is the main content area.

I set a background image (repeat-y) for the left div through css's
background: url property.

Now, I want to let the left div grow automatically along with the
right div such that the background image won't stop half way down the
page.

I created a screen shot to illustrate this problem. See below.

http://gnewsgroup.googlepages.com/cssdivheight

Any good idea? Thank you.
You might get some ideas from:

<http://netweaver.com.a u/floatHouse/page10.html>

--
dorayme
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4880
by: LizP | last post by:
We're using SQL2000 on Windows 2000 Server, but this is a problem we've had on one particular database since SQL7 on NT4. The database in question is set to autogrow by 10% (currently sitting at 31Gb total size). However, last week users complained of a slowdown in performance. When we checked we found that only 14Mb was free on the database (we thought it would've grown automatically before then), and when we added an additional 1Gb...
4
5386
by: ALESSANDRO Baraldi | last post by:
Hi and Good Sunday. Have i any way to Reduce at Runtime, with no change on Design View, the Height property of Detail_Section on my Report.....? The Section Property is Read_Only but if i encrease one Control inside with ctl.Height>Section.Height automatically the Section adapt the Height
2
2723
by: Steve Bottoms | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table (table.height.value) to be able to dynamically position the next elements on the form. However, this control property is coming back as -0- every time. I also try to get the table height with Javascript after-the-fact (table.style.height), but that...
1
2432
by: ngreplies | last post by:
I am using a label as a tooltip box because I need to be able to change the background of the box depending on the information it is representing. That aside, I need to be able to auto-size the box depending on the amount of data within it. Sometimes the text in the label will be single-line, but a little long where it needs to wrap. Sometimes the text in the label has been forced to spread over three lines. Sometimes the label has...
4
41711
by: Harris Kosmidhs | last post by:
Consider the following HTML: <div class="links"> <img src="linkimages/logo.gif"> <h2>title</h2> <span><a target="_blank" href="http://">http://</a></span> <p>description of link</p> </div> I have the following CSS:
7
13412
by: NJonge01 | last post by:
Hi, I'd like to produce a report that basically looks like an excel printout. Description: Profile Print Report Detail Section with 3 bordered text boxes all text boxes are 'abutted' against each other (where one ends, the next begins) all text boxes have the 'can grow' property set to yes. Detail Section with 'can grown' = yes
0
1070
by: Peter | last post by:
I have a datalist and I want the datalist to grow from no recors to fill the screen, but not go beyond the screen height. How do I do that? I've implemented the scroll bars but that's for the fixed height. I want the datalist to grow and shrink and never go beyond the current screen height, if it goes beyond the screen height I want to implement the scroll bar. Thank You
3
5820
by: Peter | last post by:
I have a datalist and I want the datalist to grow from no records to fill the screen, but not go beyond the screen height. How do I do that? I've implemented the scroll bars but it works only for the fixed height. I want the datalist to grow and shrink and never go beyond the current screen height, if the data can not fit in one screen I want to implement scroll bars, but only scroll the datalist not any other parts. Thank You
1
3593
by: anish007 | last post by:
I have a problem with making div container height grow with respect to the other. I have basically 3 div containers, the div container named main contains the other 2 containers left and right respectively. My left container floats left and my right container floats right. The right containers height changes in different pages according to content, and my left container always has the same content. Now, how would i make my left...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.