3 replies [Last post]
mltolun
Offline
newbie
Last seen: 16 years 44 weeks ago
Joined: 2004-01-23
Posts: 3
Points: 0

Hi....I'm designing an entire site using CSS. I'm a rookie, and I can't do what I want.

http://cablemodem.fibertel.com.ar/mar/template.htm

I need the text (#maincontent) to be at the same height than the left menu (#nav2). How can I do this?

Thanks

moody
moody's picture
Offline
Regular
croatia
Last seen: 13 years 3 weeks ago
croatia
Timezone: GMT+1
Joined: 2003-09-21
Posts: 29
Points: 0

Float problem with layout

see what happens when you add float: left; to #nav2

if you're floating one thing like this you're going to have to float some more things to keep up and above where you want to be!

mltolun
Offline
newbie
Last seen: 16 years 44 weeks ago
Joined: 2004-01-23
Posts: 3
Points: 0

Float problem with layout

It works!
But I've seen pages where it is not necesary to float both DIVs to achieve that.

Example: www.alistapart.com

moody
moody's picture
Offline
Regular
croatia
Last seen: 13 years 3 weeks ago
croatia
Timezone: GMT+1
Joined: 2003-09-21
Posts: 29
Points: 0

Float problem with layout

Unfortunately, I’m not good at explaining things.

So I’m going to have to say that the reason a list apart works and your example doesn’t has something to do with the xhtml markup, e.g. the ordering of the divs.

It also has to do with the fact that the folks at the list know what they’re doing; unlike myself. But if you do happen to debug their layout take a look at their css for #subnav ul and you will see that has a lot to do with something. And I’m sure there is something else as far as how they set up their widths, etc.

To translate what I just said: I really don’t know. Maybe someone else knows better.

Cheers!