[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

How to keep 100% width iframes from breaking div layouts?

Asked by BjHutch in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)

Tags: html, css, Firefox IE7

I am trying to design a 3 column layout for a page I am making.  Where the left column is set at 200px, the right is set to 200px and the middle one would be fluent to fill the space that is left in between.   I am also trying to place a iframe in the middle that will stretch to be 100% of the width of the center, minus a 20px border on both sides between it and the left and right columns.  

I have done this in the past with tables, but am trying to improve my technique and use divs instead.  I have attached some code that I have written so far, but what it seems like it is doing is making the iframe in the center stretch the center div to 100% of the whole browser, not just the div it is in, thus making the page scroll clear over.

I have included a copy of my broken code so that one might see what I am trying to accomplish.

Thank you in advance for all your help.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Three Chimps</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
#Leftcol {
	position:absolute;
	left:0px;
	top:0px;
	width:200px;
	height:100%;
	z-index:2;
	background-color: #00FF00;
}
#Rightcol {
	position:absolute;
	top:0px;
	width:200px;
	height:100%;
	z-index:3;
	right: 0px;
	background-color: #00FF00;
}
#Middlecol {
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	z-index:1;
	background-color: #0000FF;
	padding-left: 220px;
	padding-right: 220px;
}
-->
</style></head>
 
<body>
 
 
<div id="Leftcol"></div>
<div id="Rightcol"></div>
<div id="Middlecol">
        The material below comes from the website http://example.com
        <iframe src="http://example.com" height="100%" width="100%">
            Alternative text for browsers that do not understand IFrames.
        </iframe>
</div>
</body>
</html>
[+][-]07/10/08 12:57 AM, ID: 21971269Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/10/08 12:59 AM, ID: 21971274Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)
Tags: html, css, Firefox IE7
Sign Up Now!
Solution Provided By: xberry
Participating Experts: 2
Solution Grade: A
 
[+][-]07/10/08 06:47 PM, ID: 21979314Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/17/08 02:45 PM, ID: 22030721Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_2_20070628