•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 429,741 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,067 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 521 | Replies: 4 | Solved
![]() |
Sure, define any <div> in your CSS file, which will have width and height properities + overflow setting, if is content bigger than box. Something like this:
#box {
width: 200px;
height: 400px;
background: #F2F2F2;
border: 1px solid #DDDFFF;
overflow: scroll;
} Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
•
•
Join Date: Jun 2008
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Sure, define any <div> in your CSS file, which will have width and height properities + overflow setting, if is content bigger than box. Something like this:
#box { width: 200px; height: 400px; background: #F2F2F2; border: 1px solid #DDDFFF; overflow: scroll; }
WOW!!! I spent so much time making an iFrame for the first time. That's so much easier! At least I learned more about iframes. Thank you.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the HTML and CSS Forum
- Previous Thread: Input box not accepting focus...
- Next Thread: Optional Closing Tags in HTML


Scrollbars will be dependent on content.
Linear Mode