2

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?

3
  • Paste the CSS your are using, so we can point out what is wrong in it.. Commented Nov 1, 2012 at 11:51
  • .wrapper .content {overflow:scroll;} Commented Nov 1, 2012 at 11:57
  • Yes it's wrong, that will cover the title div as well as it's inside the .wrapper div. Both answers posted are correct. Try them. Commented Nov 1, 2012 at 12:02

2 Answers 2

1

Try with:

div.content { overflow: auto;}
Sign up to request clarification or add additional context in comments.

Comments

0

make sure your css is

div.content { overflow:scroll; }

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.