csjanakas
08-10-2006, 06:12 AM
<html>
<head>
<title>Auto Scrolling Div</title>
<head>
<style type="text/css">
.div_scrol {
background-color: #CCCCCC;
padding: 10px;
border: 1px solid #993333;
height:120px;
overflow: scroll;
width: 80%;
font-size:80%;
margin-left:10%;
margin-right:10%;
scrollbar-face-color : midnightblue;
}
</style>
</head>
<body>
<div class="div_scrol" >
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D, The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D, The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
</div>
</body>
</html>
Problem
wht i need is when the text is less than 120px or less than 6 line, example 2 line area should be fit to that size.
now its same size even thought text is with 1000 line or single line.
i tried with max-lenght property but it doesn't work either.
help me.
regard
csjanakas :(
<head>
<title>Auto Scrolling Div</title>
<head>
<style type="text/css">
.div_scrol {
background-color: #CCCCCC;
padding: 10px;
border: 1px solid #993333;
height:120px;
overflow: scroll;
width: 80%;
font-size:80%;
margin-left:10%;
margin-right:10%;
scrollbar-face-color : midnightblue;
}
</style>
</head>
<body>
<div class="div_scrol" >
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D, The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D, The following items are designated Product Identity, as defined in Section 1(e)aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa
of the Open Game License Version 1.0a, and are subject to the conditions set
forth in Section 7 of the OGL, and are not Open Content: Dungeons & Dragons, D&D,
</div>
</body>
</html>
Problem
wht i need is when the text is less than 120px or less than 6 line, example 2 line area should be fit to that size.
now its same size even thought text is with 1000 line or single line.
i tried with max-lenght property but it doesn't work either.
help me.
regard
csjanakas :(