JSProgrammer11 JSProgrammer11 - 6 months ago 10
HTML Question

scrollanble div with border HTML CSS

How can i code a scrollable div ? perfectly with a blue border.

Is there a way to code this?

Like a window in a window -> two scrollbars

Answer

I dont know the id of your div but mine is "box"

Add this to your code

#box{
width:1620px;
margin-right:auto;
margin-top:20px;
background-color:white;
box-shadow: #254C58 1px 0px;
border: #3C7D91 5px double; 
padding:10px 10px 10px 10px;
overflow-y: scroll;
max-height: 433px;
}
Comments