mattgolsen
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 |
| |
| |
Shawn
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 |
| |
mattgolsen
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... |
| |
AlarConcepts
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« |
| |