Himberjack
Himberjack

Reputation: 5802

Problem with overlay of 2 elements

I have the following code:

<div style="height:500px">
<ul style="height: 1000px">
....
</ul>
</div>

I am using the UL as Jquery carousel. My problem is that the div won't act as a 500px window above that UL carousel, and it seems like its streching the DIV so it will also fit the 1000px.

How can this be solved?

thanks

Upvotes: 0

Views: 56

Answers (2)

Tobias
Tobias

Reputation: 494

Its hard to tell whats happening aside those two code lines but you would also need to set in the css that the div should have overflow hidden so that no content will flow over the height

Upvotes: 2

Subdigger
Subdigger

Reputation: 2203

try <div style="height:500px; overflow: hidden">

Upvotes: 3

Related Questions