473,387 Members | 1,453 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,387 software developers and data experts.

Problem with div height

Hi,

I have a problem with the following page:

http://nmfm.freezope.org/help

(I pasted the source below as well)
I'd like to achieve with <div>s and CSS (first set of boxes on that
page) the same result that I get with the <table> (second set of
boxes).

The question is, the 2 <div>s inside the outer <div> need to have the
same
height, which is not fixed (ie, I can't put a "height: ##px" in the
style
attribute) but should be given by the content of the 2 divs.
In the end, the div with less content (thus shorter) should be the
same height as the taller one.

I can't give an 100% height to them because I don't know in advance the
height
of the outer div.

I can make this work in Mozilla and FireFox by using "display:
table-cell"
for the two <div>s, but IE doesn't seem to handle this.

Thanks in advance,
Nuno

#### Source #####
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD>
<TITLE>HELP!</TITLE>
</HEAD>
<BODY>
<p>xxxx</p>
<div style="border: 1px solid red; padding:0; position: relative;
width: 154px;">
<div style="width: 100px; border: 1px solid green; margin: 0; float:
left; "> 1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br> 1<br></div>
<div style="width: 50px; border: 1px solid blue; float: left; margin:
0;">pppc xzc</div>
</div>
<p style="clear: both">xxxx</p>
<table cellpadding="0" cellspacing="0" style="border: 1px solid red;">
<tr>
<td style="width: 100px; border: 1px solid green; margin:
0;">1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1 <br>1<br></td>
<td style="width: 50px; border: 1px solid blue; vertical-align:
top;">pppc xzc</td>
</tr>
</table>
</BODY>

Jul 21 '05 #1
0 2825

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

Similar topics

3
by: Mikael Hellström | last post by:
Hi all... I hava a problem . This pice of code (menu) works well with ie but don't work with netscape 6.2 .. why? Please tell me how i can get this to work. My site have the adress...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
6
by: B McDonald | last post by:
Hi. I am trying to straighten out some DIV issues in the rendering of my no-tables CSS website. Right now the biggest issue is trying to render 2 columns several DIVs deep in the box model for my...
1
by: delerious | last post by:
Could someone please take a look at this page: http://home.comcast.net/~delerious1/index11.html The set of links on the left should not have any whitespace between them, and the set of links...
0
by: Thomas Scheiderich | last post by:
I have a table that has 3 image slices. The middle slice changes size based on size of browser window. This works great. My client wants the date to show over the image on the right. So what I...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
1
by: kchaitanya | last post by:
I have created a master page. When I am adding this master page to .aspx files which are in the root directory, it is working fine. When , I am adding master page to .aspx files which are in sub...
5
by: creative1 | last post by:
hi everyone, I am struck in layout of my site. Im using 1024 fixed width layout. I have a site layout designed in psd files. Bisically I have to stick with that design tightly and I am asked not to...
2
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my...
10
by: Constantine AI | last post by:
Hi i am having a little problem with an equation function that was created from all your help previously. The function works fine itself but with a small glitch within it. Here is the function...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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,...
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...

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.