473,406 Members | 2,698 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,406 software developers and data experts.

How do I get two vertical divs to be even?

Jim
I'm trying to build a simple 3 panel web page and don't seem to be able
to get the two panels that are side by side the same length. The left
one is shorter.

The web site is: http://jim.lynch.name/testa.html

The css is embedded and is at the front of the file.

Any hints would be much appreciated.

Jim.
Jun 27 '08 #1
4 2504
In article <Q3******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
I'm trying to build a simple 3 panel web page and don't seem to be able
to get the two panels that are side by side the same length. The left
one is shorter.

The web site is: http://jim.lynch.name/testa.html

The css is embedded and is at the front of the file.

Any hints would be much appreciated.
Instead of your:

..Container {...}
div.Navigation {... background-color:#e0e0e0}
div.Content {...}
put
..Container {... background:#e0e0e0;}
div.Navigation {...}
div.Content {... background: #fff;}

There are other things wrong but this should fix your immediate concern.

--
dorayme
Jun 27 '08 #2
Jim
dorayme wrote:
In article <Q3******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
>I'm trying to build a simple 3 panel web page and don't seem to be able
to get the two panels that are side by side the same length. The left
one is shorter.

The web site is: http://jim.lynch.name/testa.html

The css is embedded and is at the front of the file.

Any hints would be much appreciated.

Instead of your:

.Container {...}
div.Navigation {... background-color:#e0e0e0}
div.Content {...}
put
.Container {... background:#e0e0e0;}
div.Navigation {...}
div.Content {... background: #fff;}

There are other things wrong but this should fix your immediate concern.
Looks good, thanks. Now what else did you spot that my simple test
hasn't caught? :)

Thanks,
Jim.
Jun 27 '08 #3
In article <_L*******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
dorayme wrote:
In article <Q3******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
I'm trying to build a simple 3 panel web page and don't seem to be able
to get the two panels that are side by side the same length. The left
one is shorter.

The web site is: http://jim.lynch.name/testa.html

The css is embedded and is at the front of the file.

Any hints would be much appreciated.
Instead of your:

.Container {...}
div.Navigation {... background-color:#e0e0e0}
div.Content {...}
put
.Container {... background:#e0e0e0;}
div.Navigation {...}
div.Content {... background: #fff;}

There are other things wrong but this should fix your immediate concern.
Looks good, thanks. Now what else did you spot that my simple test
hasn't caught? :)
Well, how about putting a doctype on your html? Try:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Instead of

<span style="height: 100%; float: left; margin-left: 5px; display:
inline; font-size: 16px;">
<p>
<a href="#">Home</a>
<br><a href="about.html">About</a>
<br><a href="projects.html">Projects</a>
<br><a href="links.html">Links</a>
</p>
</span>

Try:

<div class="Navigation">
<ul>
<li>Home</a>
<li><a href="about.html">About</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="links.html">Links</a></li>
</ul>
</div>

and then go into your CSS sheet and style this as you like with out
bullets, not so far right, etc.

There are other things.

Your white heading "Pacific Coast Highway" is in trouble, see what
happens when you enlarge text. The danger of sitting size variable thing
in a px based box. In IE6, you got away with it because basing the text
on 40px as you have makes IE6 keep it at that! In other browsers, your
instruction is ignored and it is treated as an em able to be changed at
the users command.

In my opinion, this is a good thing! All browsers should be like this.
Authors then could use text for headings like they use pics. Of course,
disaster would ensue but that would force authors never to use px for
fonts unless there was a reasonable need for it.

In the meantime, consider just making it part of the pic in an image
editor and be done. Another possibility is this, add to your title class
this to give the text a bit more room to vary:
....
display: block;
position: relative;
bottom: 50px; right: 100px;
}

and while you are at it, go to the HTML and make the words:

Pacific&nbsp;Coast&nbsp;Highway

Get rid of the line:

div.Header {width:100%; text-align:center;border: 5px solid red;}

That's it for now. beckoning is a swim at Little Bay, a walk along
Botany Bay with a nice big friendly dog, dinner at a good fish cafe
overlooking the bay and like that...

Jesus! I have practically told my enemies where they can find and knock
me off. But be careful. The dog is very protective of me - he won't be
fed till it goes dark and he is no vegetarian. One of the ways it is
easy to tell that something is meat is if it is live and moves. Carrots
don't do that.

--
dorayme
Jun 27 '08 #4
Jim
dorayme wrote:
In article <_L*******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
>dorayme wrote:
>>In article <Q3******************@bignews3.bellsouth.net>,
Jim <k4***@bellsouth.netwrote:
(snip)
Pacific&nbsp;Coast&nbsp;Highway

Get rid of the line:

div.Header {width:100%; text-align:center;border: 5px solid red;}

That's it for now. beckoning is a swim at Little Bay, a walk along
Botany Bay with a nice big friendly dog, dinner at a good fish cafe
overlooking the bay and like that...

Jesus! I have practically told my enemies where they can find and knock
me off. But be careful. The dog is very protective of me - he won't be
fed till it goes dark and he is no vegetarian. One of the ways it is
easy to tell that something is meat is if it is live and moves. Carrots
don't do that.
Lol! Dorayme, thanks a bunch for the advice. You're just paranoid, no
one wants to knock you off. You're too valuable!

Jim.
Jun 27 '08 #5

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

Similar topics

4
by: Markus Ernst | last post by:
Hi I try to build a website with a css layout. I have for example 2 div elements with a specified width and a float-left, and the 3rd div element has margin:0px which makes it extend to the rest...
0
by: Michael Ramey | last post by:
Hi, I've have two divs, that are laid out side-by-side. (I'm floating the first div to the left) I need to set up css on these two divs so that the second div is vertically aligned to the...
16
by: Uncle Pirate | last post by:
This has me stumped. I am trying to use as little space as possible at the top of my document but Firefox/Mozilla insists on placing vertical space before any element. IE displays it correctly...
15
by: scott | last post by:
Hello, I'm working on updating some of my table-based sites to use CSS instead of tables. One of my sites has a header that is composed of three elements: A B C In my prior design, this was...
18
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I...
0
by: ashkaan57 | last post by:
Hi, I am trying to put a vertical line between two DIVs that are contianers for menu and content. I added another DIV in between them and set the background-image and repeat-y but it doesn't...
4
by: O11Y | last post by:
Hello, I've read numerous posts & guides on this subject but i'm still having problems. I'm writing some HTML for the company intranet and all our browsers are currently (you guessed it) IE6. ...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
8
by: Dave Rado | last post by:
Hi See my mock-up at http://tinyurl.com/35tv29. The three icons are supposed to be vertically aligned on their bottoms (using "vertical- align: bottom"), but they aren't, they're vertically...
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: 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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.