regxcode
regxcode

Reputation: 423

Div Overflow Scroll

There is a code block like this;

<div class="wrapper">
<div class="title">Title Text</div>
<div class="content">
    <div class="block">Block text1</div>
    <div class="block">Block text2</div>
</div><!--Content End-->    
</div>

I change css overflow attr of content class like "overflow:scroll;" . But when I change this feature, overflow attribute of all div element changing. I want to fixed title class ,that don't scroll. How can I do this?

Upvotes: 2

Views: 9547

Answers (2)

Koenyn
Koenyn

Reputation: 704

make sure your css is

div.content { overflow:scroll; }

Upvotes: 0

Try with:

div.content { overflow: auto;}

Upvotes: 1

Related Questions