473,545 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2357

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

Similar topics

5
3288
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 == 192 || i == 208 || i == 224 || i == 240) i is of type int. Now, isn't that if-statement equal to:
0
5019
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 fact that I'm coming from MSSQL world, can anyone tell me if there's a way to perform join without the classic SQL statement (inner join on, right...
1
6687
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 giving me errors when attempting to parse this document. <url>http://www.whatever.com/techexec/techout.nsf/home.htm?openform&login=1</url> How...
15
23668
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
12369
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
4502
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 selected into 2 different SP variables and compared for equal. They are both NULL, but do not compare as equal. When the Not NULL columns (SALARY)...
14
2515
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
1108
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 MyObject Dim ObjB as new MyObject
2
4461
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 am struggling to find a way to see if they are all equal. Thanks in advance for any help James
1
1801
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 IST 2007
0
7490
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.