X
Xavier Perseguers
Hello,
I would like to know if there is a way specifying that a div section's
height *must* be a multiple of some pixel size. Eg. I include an image
as background and I would like the container to be a multiple of it to
get a /nice/ design.
Something like that
#height_constraint {
background-image: url('my_background.gif');
}
<div id="something">
<div class="height_constraint">
[lots of garbage]
</div>
<div>
foo
</div>
</div>
and hence the div "something" needs to be resized too...
I would like to know if there is a way specifying that a div section's
height *must* be a multiple of some pixel size. Eg. I include an image
as background and I would like the container to be a multiple of it to
get a /nice/ design.
Something like that
#height_constraint {
background-image: url('my_background.gif');
}
<div id="something">
<div class="height_constraint">
[lots of garbage]
</div>
<div>
foo
</div>
</div>
and hence the div "something" needs to be resized too...