Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Main page text into scrollable text

Main page text into scrollable text

Locked

Views: 1,200

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Feb 2009, 12:24 AM
#1
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Main page text into scrollable text

Hello guys, sorta new to zen, but learning a whole lot from the forum, wiki pages, and google combined. I would like help with turning the welcom/headline text into a scrollable window. I want it to be a fixed size with a vertical scroll bar. I have seen this elsewhere, and been using dev tools but can't seem to solve this one.

By the way the reason i want this is because i intend on adding more information to the message you see now (https://www.fashionfavourites.com) and leaving it this way will push everything else to the bottom of the page..really awkward.

9 Feb 2009, 3:13 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Main page text into scrollable text

Add the following code to includes/tempaltes/YOUR_TEMPLATE/css/index_home.css

#indexDefault {
    height: 30px; /* Specify your own fixed height here */
    overflow-x: hidden;
    overflow-y: scroll;
}

Absolute

11 Feb 2009, 1:39 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Main page text into scrollable text

I think the OP only wanted that top message area to scroll. If so, then use the #indexDefaultMainContent selector instead of #indexDefault.

Rob

11 Feb 2009, 1:56 PM
#4
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Main page text into scrollable text

Ah yes - my mistake! Bit too quick on the old copy and paste.

12 Feb 2009, 10:27 PM
#5
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Re: Main page text into scrollable text

Thanks to Both of you. I have been doing something else lately, but I will try your suggestions.

12 Feb 2009, 10:52 PM
#6
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Re: Main page text into scrollable text

anyone who wants to know this code words

#indexDefaultMainContent {
height: 30px;
overflow-x: hidden;
overflow-y: scroll;
}

thanks zen team