![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a main div with 2 divs inside, one of them floating to the right (they look like 2 columns). The main div has a background image. How can I have the main div to adapt to the maximum height of the divs inside of it so that the background image of the main div repeats vertically according to the height of the 2 divs inside? This way, the content of one of the 2 divs wouldn't overlap the main div, but push its border. |
#3
| |||
| |||
|
|
Kerberos wrote: I have a main div with 2 divs inside, one of them floating to the right (they look like 2 columns). The main div has a background image. How can I have the main div to adapt to the maximum height of the divs inside of it so that the background image of the main div repeats vertically according to the height of the 2 divs inside? This way, the content of one of the 2 divs wouldn't overlap the main div, but push its border. It should do anyway, unless you are using absolute positioning. URL? |
#4
| |||
| |||
|
|
I have a main div with 2 divs inside, one of them floating to the right (they look like 2 columns). The main div has a background image. How can I have the main div to adapt to the maximum height of the divs inside of it so that the background image of the main div repeats vertically according to the height of the 2 divs inside? This way, the content of one of the 2 divs wouldn't overlap the main div, but push its border. Thanks. |
#5
| |||
| |||
|
|
No, Kerberos uses float. So the floated column may overlap. Kerberos: add an element with 'break: right' within the main div after the two column divs. |
#6
| |||
| |||
|
|
My mistake. To make up for it, I'll point out that I think you mean "clear" instead of "break"? |
#7
| |||
| |||
|
|
Mark Tranchant wrote: My mistake. To make up for it, I'll point out that I think you mean "clear" instead of "break"? Yes, my mistake :-) |
I know there is this solution of adding a block-level
#8
| |||
| |||
|
|
Kerberos wrote: http://www.auriance.com/docs/auriance/autre.html Are you aware that there are no background colors set? My browser default background color is not white, so it's pretty obvious. |
#9
| |||
| |||
|
|
Em Thu, 06 Jan 2005 18:14:03 -0600, kchayka <usenet (AT) c-net (DOT) us> escreveu: Are you aware that there are no background colors set? My browser default background color is not white, so it's pretty obvious. Really? Good to know... What browser do you use? |
#10
| |||
| |||
|
|
Many browser allow you to change the default (background) color. |
![]() |
| Thread Tools | |
| Display Modes | |
| |