473,903 Members | 4,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Matching DIV heights in layout

Hello,

I'm having trouble figuring out how to make sure that all my DIVs in
this layout are of the same height. Here's an example of a page where
I'm having this problem:

http://www.house.gov/velazquez/test/issues/index.html

As you can see, the main content column (the white one) cuts off while
the sidebar (yellow) keeps going. I want the white column to be the
same height as the sidebar consistently through every page.

Help! Thanks!

Luis

Feb 5 '08 #1
7 3024
In article
<30************ *************** *******@j20g200 0hsi.googlegrou ps.co
m>,
hestres <lu**********@m ail.house.govwr ote:
Hello,

I'm having trouble figuring out how to make sure that all my DIVs in
this layout are of the same height. Here's an example of a page where
I'm having this problem:

http://www.house.gov/velazquez/test/issues/index.html

As you can see, the main content column (the white one) cuts off while
the sidebar (yellow) keeps going. I want the white column to be the
same height as the sidebar consistently through every page.

Help! Thanks!

Luis
Perhaps you might first fix some or all of the errors in the css
and html via http://validator.w3.org/ and
http://jigsaw.w3.org/css-validator/

Things like missing ";" in #header css (which can be misleadingly
reported as invalid property value "margin-top: 0px" because this
nomally good bit is following the missing ";")

Apart from these minor matters, consider this sort of fix:

Make background: #fff; for your #main and background: #ffffcc;
for your #sidebar.

The whole subject of colours and columns and css is complicated.

--
dorayme
Feb 5 '08 #2
hestres wrote:
>
I'm having trouble figuring out how to make sure that all my DIVs in
this layout are of the same height.
I'm having trouble figuring out why this same question comes up week
after bloody week. You're posting from google groups. Did you even *try*
a search through the archives?

--
Berg
Feb 5 '08 #3
On Feb 5, 6:52 pm, Bergamot <berga...@visi. comwrote:
hestres wrote:
I'm having trouble figuring out how to make sure that all my DIVs in
this layout are of the same height.

I'm having trouble figuring out why this same question comes up week
after bloody week. You're posting from google groups. Did you even *try*
a search through the archives?

--
Berg
Thank you for being so helpful, Berg...I sincerely appreciate your
willingness to help on this matter, and I hope I have the chance to
reciprocate someday.
Feb 6 '08 #4
On 02/06/08 08:13 am, hestres wrote:
>>
I'm having trouble figuring out why this same question comes up week
after bloody week. You're posting from google groups. Did you even *try*
a search through the archives?

Thank you for being so helpful, Berg...I sincerely appreciate your
willingness to help on this matter, and I hope I have the chance to
reciprocate someday.
Since you did not answer his question, I'd guess it is "No, I did not
search first."

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Feb 6 '08 #5
"Jim Moe" <jm************ ***@sohnen-moe.comwrote in message
news:TZ******** *************** *******@giganew s.com...
On 02/06/08 08:13 am, hestres wrote:
>>>
I'm having trouble figuring out why this same question comes up week
after bloody week. You're posting from google groups. Did you even *try*
a search through the archives?

Thank you for being so helpful, Berg...I sincerely appreciate your
willingness to help on this matter, and I hope I have the chance to
reciprocate someday.

Since you did not answer his question, I'd guess it is "No, I did not
search first."
Or perhaps he/she didn't know what terms to use in their search -- which
seems to be indicated by their subject line, "Matching DIV heights in
layout".

To the OP: try using Google Groups to search for equal height columns or
equal height div in alt.html, then sort by date to get the most recent
posts.

Feb 6 '08 #6
Nik Coughlin wrote:
>>Bergamot wrote:

You're posting from google groups. Did you even *try*
a search through the archives?

Or perhaps he/she didn't know what terms to use in their search -- which
seems to be indicated by their subject line, "Matching DIV heights in
layout".
OK, I admit that results on that search would come up empty, but
jeepers, this question comes up so often that it would probably take
about 5 minutes to find some answers just browsing through the last
couple weeks of posts from this group or alt.html

google gropers tend to not put any effort into it at all. It annoys the
heck out of me.

--
Berg
Feb 7 '08 #7
"Bergamot" <be******@visi. comwrote in message
news:60******** *****@mid.indiv idual.net...
Nik Coughlin wrote:
>>>Bergamot wrote:
>
You're posting from google groups. Did you even *try*
a search through the archives?

Or perhaps he/she didn't know what terms to use in their search -- which
seems to be indicated by their subject line, "Matching DIV heights in
layout".

OK, I admit that results on that search would come up empty, but
jeepers, this question comes up so often that it would probably take
about 5 minutes to find some answers just browsing through the last
couple weeks of posts from this group or alt.html

google gropers tend to not put any effort into it at all. It annoys the
heck out of me.
Yeah, fair enough too. But sometimes it is just a matter of people not
knowing any better rather than laziness.

Feb 7 '08 #8

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

Similar topics

31
2522
by: bart | last post by:
Why is it that everybody likes the follwowing curly braces syntax function() { implementations; } I find the following much better to read (C style) function() {
8
3087
by: Andrew Ayre | last post by:
Hi, I have the following table layout: --------------------- | A | E | ------ |
0
1669
by: Andrew Ayre | last post by:
I have the following table layout: --------------------- | A | E | ----- | | B | | ----- | | C | | ----- | | D | |
9
2472
by: Markus Ernst | last post by:
Hi I am building an admin environment for a CMS system. For the issues described I have a testcase available at http://www.ernstdeslebens.ch/csstest/ I am sorry the links are not useable as they lead to password-protected pages; it is only this page for demonstration. Both HTML (strict) and CSS validate.
3
4400
by: cpt | last post by:
I read that if one uses "table-layout:fixed" then table rendering is speeded by setting row height. All my rows are 285 px high. 1) Is this true? 2) If true, how does one set row-height for the table, preferable with a CSS style? Thanks, CMA
5
1537
by: jim_briers_us | last post by:
Hi Pretty starightforward question I'm sure so hopefully someone can enlighten me. If I have two divs next to each other how can I ensure that both are the same height? E.g. if the right hand column contains more text than the left I'd like the left hand column to be the same height. So in the example below I'd like leftcontent1 to get its height from rightcontent1. Ideas? <style>
7
2343
by: lauren quantrell | last post by:
A while back I got a requirement for the client to be able to adjust the relative heights of two subforms by click-dragging the mouse and I came up with a kludge solution using a border control between the two subforms. But I put my mind to this again recently and came up with a solution (code below) that works well with multiple subforms to size both the heights and widths of the sunforms relative to each other, and it uses no additional...
2
2415
by: sfeher | last post by:
Hi All, I am having trouble big times figuring out a way of forcing a DIV to be in synch with another DIV's height in a (mostly vertically) fluid layout in a web app context. The first one has overflow-x:auto; and a width set but not a height as I want it to vertically grow with the text inside. Basically I would like the same height for the second one. I care less if it is CSS, tables or Javascript but I would prefer the solution to
5
1805
by: Stan R. | last post by:
Greetings. I have a couple of questions concerning CSS layouts, as apposed to the old <tablemethod for creating layouts . Even after spending the last few days searching all over Google Groups, I haven't not been able to find a solution to my collective dilemma, and I hope some of you fine folks here in these neck of the UseNet woods might be able to share some wisdom with a fellow coder. My questions are in regard to what are the proper...
0
9849
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,...
0
11285
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10986
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
10501
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9688
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
8049
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
7208
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
5894
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.