473,395 Members | 2,010 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.

properly defining widths of two adjacent columns

Hi. There is an inconsistency in the rendering of my side-by-side content
and nav columns across the browsers I've tested on. In particular, IE6
renders the margin between the two columns too close; IE5.5 renders the
space too wide. I am wondering if I am incorrectly setting the width
properties of my box model. Here are links to the page and the CSS:

http://www.galtsvalley.com
http://www.galtsvalley.com/css/default.css

The problem DIV is called #MidSection - and the two columns within that are
#MidCol-1 and #MidCol-2. The style from all three divs follows.

Brian

---

#MidSection {
position: relative;
height: 100%; /* needed for proper IE5.5 bg-color */
background-color: #fff;
border-left: 4px solid black;
padding: 0;
margin: 0 0 0 0;
}
#MidCol-1 {
float: left;
width: 63%;
background-color: #fff;
border-bottom: 5px solid black;
padding: 0 0 5% 0; /* top right bot left */
margin: 0 0 5% 1%;
}
#MidCol-2 {
float: right;
width: 30%;
min-width: 160px;
background-color: #cc9;
border-top: 1px solid #000;
border-left: 1px solid #000;
border-bottom: 2px solid #444;
border-right: 2px solid #000;
padding: 1% 2% 1% 2%; /* top right bot left */
margin: 0 0 5% 0;
}
Jul 20 '05 #1
1 1893
This problem persists for me. It's a real catch-22. If I make it look right
in IE5.5, it looks way wrong in IE6. If I make it look right in IE6,
vice-versa. Another question: why can't I make the total width of the two
columns equal to 100%? If I do I get the contents of a column dropping down.
I'm confused.

Does anyone test their CSS in IE5.5?

Brian
---

#MidSection {
position: relative;
height: 100%; /* needed for proper IE5.5 bg-color */
background-color: #fff;
border-left: 4px solid black;
padding: 0;
margin: 0 0 0 0;
}
#MidCol-1 {
float: left;
width: 63%;
background-color: #fff;
border-bottom: 5px solid black;
padding: 0 0 5% 0; /* top right bot left */
margin: 0 0 5% 1%;
}
#MidCol-2 {
float: right;
width: 30%;
min-width: 160px;
background-color: #cc9;
border-top: 1px solid #000;
border-left: 1px solid #000;
border-bottom: 2px solid #444;
border-right: 2px solid #000;
padding: 1% 2% 1% 2%; /* top right bot left */
margin: 0 0 5% 0;
}

Jul 20 '05 #2

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

Similar topics

0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
1
by: Rachel Devons | last post by:
All, I have a table with three rows, and within each row I have a DataList that is set to use 3 columns. The problem I'm having is that each DataList sets it's columns to be different widths so...
2
by: TB | last post by:
Hi All: I have this datagrid where space is very tight, and therefore I have to make sure that everything fits within a fixed screen width regardless of whether I am in list mode or in edit...
1
by: Jeff | last post by:
I am trying to set the width of the grid to the total widths of the column I have been trying to add columns by doing thi ..Columns(2).Width + .Columns(2).Widt But I get this message Operator...
6
by: cr113 | last post by:
I'm trying to set the column widths for a datagrid. You'd think it would be easy. I looked it up in google and the first thing I found looked promising: datagrid1.columns(0).width = 2000...
3
by: jd | last post by:
I am displaying a table and using javascript to provide an incremental search capability that allows certain rows to be dynamically hidden. The original table specifies no column widths, so I'm...
4
by: Rich | last post by:
Hello, I have a one datagrid that will be based on different datatables. One datatable may have 7 columns, another 15... With the tables that have more columns, I have been manually dragging...
5
by: Steve Bugden | last post by:
Hi, I would like to set the column widths in the ASP.NET GridView control at runtime I have tried the following: http://msdn2.microsoft.com/en-us/library/ms178296.aspx Which uses the...
0
by: =?Utf-8?B?Z3V5?= | last post by:
Repost as no reply from dotnet.Framework.ASPNet I have a GridView with autogenerated columns and I programatically set the width and visibility of each column. The code executes correctly as with...
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
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
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
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
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...

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.