Working on site, need help with scroll bars.

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
Darkmatter
Posts: 23
Joined: Sat 30. Jul 2005, 17:27

Working on site, need help with scroll bars.

Post by Darkmatter »

Hello...

Working on http://www.prototypeonline.com/protophp

Would like to ask you seasoned pros about the ability to do the following:

Have a minimum set main content height, but if exceeded, show scroll bars WITHIN the main content table.

I've searched on different possibilities, but the closes I came was a CSS mod that stretched the center section as the window http://www.phpwcms.de/forum/viewtopic.php?t=6729 . I was also thinking about IFRAMES, but can't even begin to wonder how to make that work within the tools provided by phpwcms.

Any thoughts on this application would be greatly appreciated!
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

Post by usta »

you can easily use a div-tag/css-combo. have a look at the code:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<style>
.test{
	width: 150px;
	height: 200px;
	margin: 50px;
	border: 1px solid #000000;
	overflow: scroll;
}
</style>

</head>
<body>
<div class="test">
	aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa 
	aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa 
	aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa 
	aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
</div>
</body>
</html>
it's quite self-explaining, is'nt it? works with ie and ff.

:wink: usta
Darkmatter
Posts: 23
Joined: Sat 30. Jul 2005, 17:27

Post by Darkmatter »

Gotcha, looks good. I changed the overflow to auto and it's good.

Thank you!
Post Reply