473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

div layout help

hey all,
i was wondering why my div will not extend the height of it's container div?

http://www25.brinkster.com/rodchar/ques200710231133.png

thanks,
rodchar
Oct 23 '07 #1
2 1144
in standard CSS, a height:100% means height of parent, but there is a
requirement that the parent have a specified (absolute) height. this is
because the size of a parent defaults to its content height. there is no
size specified for the parent so 100% is ignored.

the second issue is that the nav div is a block element, so this means
its starts on a new line, thus below the <h1></h1>

you should put the header in a div, and use relative postioning to set
them side by side.

-- bruce (sqlwork.com)

rodchar wrote:
hey all,
i was wondering why my div will not extend the height of it's container div?

http://www25.brinkster.com/rodchar/ques200710231133.png

thanks,
rodchar
Oct 23 '07 #2
thank you for that insight.
rod.

"bruce barker" wrote:
in standard CSS, a height:100% means height of parent, but there is a
requirement that the parent have a specified (absolute) height. this is
because the size of a parent defaults to its content height. there is no
size specified for the parent so 100% is ignored.

the second issue is that the nav div is a block element, so this means
its starts on a new line, thus below the <h1></h1>

you should put the header in a div, and use relative postioning to set
them side by side.

-- bruce (sqlwork.com)

rodchar wrote:
hey all,
i was wondering why my div will not extend the height of it's container div?

http://www25.brinkster.com/rodchar/ques200710231133.png

thanks,
rodchar
Oct 23 '07 #3

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

Similar topics

7
by: James Thornton | last post by:
I'm trying to make the transition from tables to CSS, and I need someone to explain how to achieve the following layout (understanding the concepts behind this layout will help me considerably in...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
20
by: Tammy | last post by:
What would be a good alternative to using frames? I need something that will section my webpage into two halves and can change both frames on a single click. Thanks in Advance, Tammy
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
10
by: Volker Lenhardt | last post by:
For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I try to layout my data output in a QScrollView as the central widget. I'd prefer to use QGridLayout, but cannot add it to the...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
4
by: Edward Mitchell | last post by:
How can I find the "My Profile" tab on the Start page. I have the "Recent Projects", "Getting Started" and "Visual Studio Headlines" in panes on the left hand side and "MSDN: Visual C++" on the...
26
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were...
1
by: gamernaveen | last post by:
Hi guys , please help me with this bug. the site (tell me other bugs if you find) http://web.acen.mobi/eoa/, there the iframe (the form content is the iframe) is not fitting with the layout , u...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.