473,387 Members | 1,766 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.

Equal-height columns & margin problems.

Hi,

I am trying to put together a CSS-based layout consisting of a header, a
sidebar and a main content area.

Page: http://www.westeros.org/ASoWS/
CSS: http://www.westeros.org/ASoWS/ASoWS-All.css (the relevant IDs are
towards the bottom)
JS: http://www.westeros.org/ASoWS/SetHeight.js

Using a javascript (based on this one:
http://www.saila.com/attic/sandbox/set-height.html), I have almost
managed to make the sidebar and the content area of equal height.
However, a couple of issues remain that I haven't been able to sort out
on my own:

1) The margin-bottom of 25px set on the #Sidebar and #Main DIVs doesn't
seem to be respected. Or rather, it isn't respected on #Main so when I
use the javascript to set #Sidebar to the same height, the same effect
occurs there. However, the issue with #Main occurs even when I am not
trying for equal column height, so it isn't really related to that.

2) #Main uses a padding of 10px all around. This appears to have
resulted in the javascript incorrectly calculating the height of
#Sidebar. I found another, similar javascript
(http://www.paulbellows.com/getsmart/balance_columns/) which appears to
allow for a correction of the error introduced by the padding, but I
haven't been able to figure out how to adjust the first javascript
(which seems a little easier to update for additional DIVs, hence why I
prefer it) to do the same.

3) In IE, in addition to the two first problems, the margin-right of
25px on #Main is not respected. The DIV spills all the way out to the
edge and actually a little beyond, resulting in a horizontal scrollbar.
This also occurs even when I am not trying for equal column height, so
it isn't really related to that.

If anyone has any ideas for how to sort these problems out, I'd be very
grateful. :)

Linda
Jul 21 '05 #1
0 2347

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

Similar topics

5
by: William Payne | last post by:
Hi, I was going through some old code of mine and spotted this: if(i == 16 || i == 32 || i == 48 || i == 64 || i == 80 || i == 96 || i == 112 || i == 128 || i == 144 || i == 160 || i == 176 || i...
0
by: tekanet | last post by:
Hi folks, I'm new with MySQL and I'm really impressed by this database engine. While waiting for Stored Procedures :) (ver 5: anyone can say when will be, approximately, released?), due to the...
1
by: johndesp | last post by:
I am building an xml document to represent a url request. Some urls contain d equal signs appended to the url. Its important I preserve the equal sign in hte xml document. However, my parser is...
15
by: Murt | last post by:
Hi, when writing equations in vb .net, how do you enter the signs "less than or equal to" etc. thanks Murt
5
by: Yves Glodt | last post by:
Hello, I need to compare 2 instances of objects to see whether they are equal or not, but with the code down it does not work (it outputs "not equal") #!/usr/bin/python class Test:
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
14
by: serge calderara | last post by:
Dear all, What is the proper way to check if two object are equal ? I do not mean equal on Object type only but also object value's thnaks for help regards serge
5
by: Bruce | last post by:
I am a C++ programmer so sorry for the simple VB question. If I have two instances of the same type of object, how do I make the value of one equal to the other? If I do Dim ObjA as new...
2
by: jimmy | last post by:
Hi, I have an array of type integer which i now want to sort through to find out if all of the elements are equal to one another. I have code that finds the lowest element in the array however i...
1
by: buntyindia | last post by:
Hi , I am exporting files from my application. Files those are not supposed to be exported are of two types : 1.) Blank with Zero bytes 2.) Other one is in a format # #Mon Aug 13 14:33:02...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.