Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- CSS Positioning is going to make me CRAZY!
December 19, 2004, 6:33 pm
rate this thread
div if it is longer that the "search" div.
The content of these two divs is dynamic so I cannot make the a set width or
How can I ensure that my "results" div does not go below my "search" div?
<div id="search" style="float: left">
<!-- SOME ASP CODE HERE -->
<input type="text" name="key">
<input type="submit" value="Submit">
<span class="heading">Search Results</span>
<!-- ASP CODE TO DISPLAY RESULTS HERE -->
<!-- MORE ASP GENERATED HTML -->
Re: CSS Positioning is going to make me CRAZY!
And that's my problem... 95% of the page is generated dynamically. I do not
know how wide or tall any of the content will be.
I want a column on the left side that is wide enough to hold it's content.
To the right of this I want another "column" that is wide enough to hold
it's content. This second column can go off the right side of the screen if
necessary. I do not want any of this second column to appear below the first
Below these two columns I want a third area. I want the top of this third
area to start at the lowest point of the two columns above.
If I float the container or search DIV, it is no longer contained within the
Also if the search DIV is not as tall as the results DIV, the results DIV
will appear below the search DIV. I want the search DIV to be blank below it
if it isn't as tall as the results DIV.
At this point I think I'll just use tables... I hate them, but at least they
PS ..and no I don't have a sample on the internet.