Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 31st, 2007, 01:41 PM
someone1 someone1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 someone1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 sec
Reputation Power: 0
XHTML/CSS height

Hey guys.

I know i'm probably singing the same old song, but i need help with a certain layout i'm trying to do.

My problem:

I have two Div tags enclosed in a single div tag. The two children div tag float left and right respectively, and vary in height (depending on how much content is generated in them). What i want is for the two children div tags to be of the SAME height, which i guess would be the full height of their parent div tag.

i am trying to keep a XHTML 1.1 validation. I know i can accomplish the look i want with Tables, but i'd much rather use div tags. I also know i can do this by having javascript manually change the style.height's of both div tags to equal the larger of the two. I was wondering if anyone knew a way to get this look i want with maybe some div tag/css hacks or something of that sort.

I do not want the div columns to stretch the height of the page, just the height of the parent.

I've searched and tried tips/tricks on this forum and i don't think i'm doing them right (or maybe its just not possible).

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>




	
		<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1">
		<meta name="description" content="description">
		<meta name="keywords" content="keywords"> 
		<meta name="author" content="author">
		<title></title>
		<style type="text/css">
		* {
margin:0pt;
padding:0pt;
}

body {
background-color:#fff;
}

#layout {
margin:0pt auto;
width:758px;
margin-top:10%;
overflow:hidden;
}

#header {
font:normal 8pt Verdana;
text-align:right;
width:100%;
}

#container {
height:100%
}

#leftside {
width:153px;
float:left;
height:100%;
background-color:#999;
position:relative;
}

#footer {
text-align:center;
margin-top:20px;
background-color:#00ff00;
font:normal 8pt Verdana, sans-serif;
}

#rightside {
width:605px;
float:right;
height:100%;
background-color:#CCC;
position:relative;
}
</style>
		</head>
		
		<body>
		
<div id="layout">
	<div id="header">HEADER | LINKS | HERE</div>
	<div id="container">
	<div id="leftside">LEFT SIDE <br/>THIS IS <br /> WHERE NAV IS <br /></div>
	<div id="rightside">RIGHT SIDE </div>
	</div>
	</div>
	<div id="footer">
	FOOTER
	</div>
	</body>
	</html>
		

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > XHTML/CSS height


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway