Content hides when formulary fields streched out

Hi to all the people in this forum,

I hope someone could help me to find a solution. My website has a predesigned template coded by CSS. It has, lets say, 3 horizontal areas for content, one in the top, one in the middle and one in the bottom. All the elements in the index page fits well but if I add more content to the middle section then the contect hides behind the bottom section. It is like if the middle section couldn´t be streched down.

Could anyone please give me an idea of how to fix this?? I will appreciate it a lot!!

Thank you in advance
Laura

I just left the problem of the white and cofee spots that appear when the quick search is expanded. I think that is the minimum to change in order to make this presentable. Do you have a clue of what solution can I apply?

Yeah, someone (I didn’t look, but likely the body) has the coffee colour (which I only see showing up in your footer), so to fix coffee from appearing is to give some box (one of the containers) a white background.

The td called “bg_white” has a background image making up part of the red header… its own background colour is transparent. You could set that to #fff.

background: #fff url(/layout/themes/natural/img/bg_top.gif) left top repeat-x;
That ought to colour a small section on the bottom left white.

The next box would be cont_div itself. It too can hold a white background where it states the background image.

I found out why your spaces are different size than mine. It is dependent on font size. My text I’ve made bigger which made bigger holes.

But I think putting white backgrounds on those two boxes will keep them white no matter what the text is. As text grows, though, the green background moves down. It’s due to the way the maker used background images, he moved the green area down so that it started after the red image.

: (

This code made me sad. I’m tempted to tell you to go back to the heights but make them say “min-height” instead of “height” so that content inside can grow.

First thing I’ll note is that, on my browser, the spaces aren’t as tall as they seem on your screenshot. This is worrying because any pixel values I give you probably change based on screen width.

The box on the right, with the rapid search form and the little winged heart? The guy put a top margin of 20px on it, which pushed it down. In your screenshots, it’s too far down, leaving space on the right (is that large image a placeholder??). It also caused the space on the bottom left (because the rapid search form box was pushed down, it was sticking out the bottom).

If you don’t have any top margin, the whole green section will be too high. Now, normally, with plain old HTML, boxes won’t do this; naturally they will just push up against the bottom of the one above them, not overlap them. Yours are overlapping and while it’s fixable, it’s difficult. Each single thing one sees on the page is wrapped by lots and lots of boxes. What are those boxes doing?? I assume they’re in the template in case someone wants to do extra styling or something. The background images are also very static. The green background has pre-made holes on the left for join and sign in buttons, meaning any change in the content on the rapid search could affect it.

Possibly lowering the top margin to 10px or so (or whatever until it looks ok) may work temporarily, but I do not know if it will work cross browser because your spaces looked taller than mine.

This whole set of code is a) more than you need, and b) kindof hard to wrangle.

What are your options? How much work do you want to put into this?

Possibly the easiest thing for you to do for fast results and not much coding is what I mentioned earlier: turning that old height into a min-height.

Min-height ensures that a box is at least the height you set (except in IE6), but if the content inside grows, the box can grow too.
IE6 doesn’t know min-height, but since it lets boxes with “height” grow (it’s not supposed to, but oh well), we usually give IE6 a height, either in an IE6 stylesheet or behind a Tan hack in the main stylesheet (you have about 15 stylesheets. That’s a lot of loading).

The more difficult solution would be to redo most of your code. There is more code than necessary: for example. every list item in the top menu has the same class of “tab”. Lots of little things like that start adding up pretty fast to a lot of code.

Which div did you change height? Another reason you see “spaces” is because the background of the element doesn’t have the white background colour that would hide the edges of an image.

It sounds like someone made a very brittle template. You may have to make several changes to it before it’s flexible enough to deal with different amounts of content, so expect that. We can probably walk you through those changes though.

Thank you to ScallioXTX & Stomme poes for the willing to help. I will try to explain this as much as possible. First I need to mention that I´m seing the page in a 1024 x 768 screen resolution. I have attached two pics in order to explain what I get without streching the content down and after I streched the content down. All these bugs appear after I made one div height = AUTO.

The strech down consist in selectioning fields of a formularly that is at the top right of the middle section. If I don´t strech down the content then the middle layer is slightly superposed with the top section as you can see in the attachment (I have made signals with blue color arrows). If I streched the contect down, then some spots of backgound appear (I have made signals with blue color),

If you need to take a look at the code I can post the CSS file here and you can see the index page here: Ligar en Mexico

Thank you very much!!! (:

Sounds like the middle section has a height set to it. If you remove that from the CSS it should work fine.

Hi Stomme poes, thank you very much for your support. Yes, it makes me sad too. That is what you get when you don´t make things by your own. Unfourtunatly I got this template together with the script and although I can choose any other template ALL of them are as messy as this one.

All what I can do now is to make this template as usable and presentable as possible and later with more calm try to do my own template from cero as it would be better to suit my needs. Right now I cannot do that as I don´t have time and it will take me a lot as I was just used to work with tables and tds (old style design) and not with divs, but I´m sure I will do it.

So, my only option is to get this mess presentable. I changed the heigh to min-height = 409 px which was the previous value. The div in question is: cont_div , which seems to be in the top of the code. With the min-heigh change the problem of overlapping in the top was solved. I just left the problem of the white and cofee spots that appear when the quick search is expanded. I think that is the minimum to change in order to make this presentable. Do you have a clue of what solution can I apply?

Thank you very much!
Laura

Hi ScallioXTX, Thank you very much for your input. I´m not so skilled in CSS, that is why I make these questions. I appreciate your patient on this.

I did a search on the CSS that controls the index. I find the div and I change the height to AUTO as it was on 409 px. That solve the problem but cause some misconfiguration of the other divs. That is typical I know that I will need to recode some areas, but I just wonder how? Maybe you could help me a little more I will appreciate it. :slight_smile:

For example. After correcting the AUTO height.

  1. Some photos that are located in the middle section goes up to the top section. Do you have an idea of what I need to fix in that case?

  2. Then if I add more content to the base of the middle section all the content streched down and left areas with some backgound. Like spots of backgounds the middle section. How should I change this situation?

Thank you very much (:

Could you post the code / a link to your website.
Without that I’m rather clueless I’m afraid :slight_smile: