Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > HTML/CSS > CSS scroll area, with overflow...


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: CSS scroll area, with overflow...

Newbie





Posts: 9
Registered: 5/27/2004
Status: Offline

  posted on 5/27/2004 at 01:30 PM
I'm building a new theme (AutoTheme Lite), and I'd like to have the area that my main modules & center blocks pop up in a scroll area...

here is the code that I'm using

quote:
<style type="text/css">
<!--
div.scroll {
height: 200px;
width: 300px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;
}
-->
</style>


quote:
<div class="scroll">
<p>This is a scrolling are created with the CSS property overflow in a html block element.</p>
<p>
<span >This is red color</span>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
<p>This is a normal paragraph.
<span >This is big bold text</span>
</p>
<p>This scrolling are can contain normal html like this <a href="index.phtml">link</a></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
</div>



Does anyone have any ideas or reasons why this wouldn't work? Cause I sure can't get it to... heh

 
Reply With Quote

Administrator




Posts: 4570
Registered: 10/7/2002
Status: Online

  posted on 5/27/2004 at 05:05 PM
The style must be in the head of the file and in the AutoTheme admin there is an option for "strip to head". If this = yes or 1, then AutoTheme strips that style out of the head. Set it = 0 and it should work.

As an alternative, maybe put that style in the style.css.

-Shawn

 
Reply With Quote

Newbie




Posts: 9
Registered: 5/27/2004
Status: Offline

  posted on 5/28/2004 at 07:56 AM
That did it, thanks for your help. I declared it twice, once in the theme.html and once in the stylesheets, becausei f you don't it won't completely work... but thanks again...
 
Reply With Quote

Senior Member




Posts: 217
Registered: 7/31/2004
Status: Offline

  posted on 2/10/2005 at 04:56 AM
Do a google on scrollable divs...your idea is there, but the method isn't quite right. This is why you've got to declare it twice.

 

____________________
»AlarConcepts«

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 82
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.110799 Seconds