Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Display article in fixed size box
Hi
I want to display a long article in a fixed size area (box).
306px x 510px with no scroll bar
The idea being that I use a series of anchors and links to click through the article.
Not sure if it’s possible using HTML/CSS and <txp>?
I’ve tried using css divs and html tables but it always breaks height.
It may be possible with javascript? Does anyone know of a script and if I can use it with a txp article?
Thanks
Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#2 2009-03-07 12:39:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Display article in fixed size box
Would the jQuery scrollTo plugin do what you want?
Offline
Re: Display article in fixed size box
Thanks Els
It looks good.
I’ve uploaded jquery.scrollTo.js to textpattern/js
linked to it in the <head>
But I’m not sure how or where to call the function from in my page.
Thanks for your help.
Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#4 2009-03-07 14:18:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Display article in fixed size box
geoff777 wrote:
But I’m not sure how or where to call the function from in my page.
I’ve only ever used it for ‘back to top’ links, so I can’t help you with that I’m afraid. Examining the demo page’s source and reading the project page and it’s comments might help you, or you can post there for support if no one here can help.
You might want to change this topic’s subject (add jQuery.scrollTo) to attract the experts ;)
Offline
Pages: 1