Log In · Register

 
Div help, how to put a scroll box in div
yuffiehx
post Aug 7 2009, 03:00 PM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Sep 2008
Member No: 683,743



okay i want a div in a div you see...

CODE
<div class="YOUR DIV CLASS">
TEXT TEXT TEXT
<div style="width:###px; height:###px; overflow:auto;">
TEXT WITH A SCROLLBAR HERE
</div>
TEXT TEXT TEXT
</div>



something like that but the dive code i use for the main square code is like this

CODE
<div class="content" style="position: absolute; width:400; height:450; z-index:1; left:405; top:50; backgroundcolor: D6D6D6; overflow: auto; border-color: 000000; border-style: none; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;">


so everytime i try to put a div or scroll box thing it just makes nothing except space of how much
the square should look like...

can anyone help me please?

this is the code i use to hide my layout...


i'm sorry for the trouble :d
 
 
Start new topic
Replies
Nickfury
post Aug 7 2009, 03:04 PM
Post #2


Nick
***

Group: Member
Posts: 78
Joined: Aug 2009
Member No: 740,993



not sure how to debug your current situation, id suggest just using

CODE
<div id="container">
<div id="content">
text
</div>
</div>

<style type="text/css">
.container { attributes; }
.content { attributes; overflow:auto; }
</style>
 
Nickfury
post Aug 7 2009, 03:25 PM
Post #3


Nick
***

Group: Member
Posts: 78
Joined: Aug 2009
Member No: 740,993



CODE
<div class="container">
text
<div class="content">
text
</div>
</div>

<style>
.container {
position: absolute;
width:400;
height:450;
z-index:1;
left:305px;
top:200px;
background-color: FF0000;
border-color: 000000;
border-style: none;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
}
.content {
width:380;
height:350;
background-color: D6D6D6;
border-color: 000000;
border-style: none;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
overflow:auto;
margin: 10px;
}
</style>
Reason for edit: Please use [codebox] tags instead of [code] tags when posting long codes. - Mike
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: