php forum
php mysql forum
php mysql smarty
 
Topic Options
#277364 - 07/28/04 03:09 PM Scroll Box in CSS
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I've seen JC do this before with the CODE tag.<br /><br />But I've got some info on a page, which I want to truncate into a scroll box (like an iFrame). I can do an iFrame if needed, so they can scroll through the whole thing - but I thought there's got to be a way to do this in CSS. Any ideas?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#277365 - 07/28/04 03:45 PM Re: Scroll Box in CSS [Re: Daine]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
.tagname { <br />overflow: auto; <br />height: 200px; <br />width: 100%; <br />padding: 2px; <br />margin: 1px 1px 1px 1px; <br />} <br /> <br /> Docs on overlfow: <br />http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow <br /> <br />Then use <span class="tagname"> before and </span> after the text involved. <br /> <br />
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#277366 - 07/28/04 03:47 PM Re: Scroll Box in CSS [Re: chrisX]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thank you! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#277367 - 07/28/04 04:11 PM Re: Scroll Box in CSS [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK - i can't get it to work.<br /><br />http://www.biketrip.com/forum/newuser.php<br /><br />Trying to truncate the rules. You'll see if you view the source that I've done<br /><br /><span class="boardrules"> above the rules and </span> after the rules.<br /><br />Then added this to my stylesheet:<br /><br />.boardrules {<br /> overflow: auto;<br /> height: 200px;<br /> width: 100%;<br /> padding: 2px;<br /> margin: 1px 1px 1px 1px;<br />} <br /><br /><br />Any ideas?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#277368 - 07/28/04 04:45 PM Re: Scroll Box in CSS [Re: Daine]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Try div instead of span
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#277369 - 07/28/04 04:58 PM Re: Scroll Box in CSS [Re: chrisX]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" /><br /><br />Makes sense. I tried putting the class in a font tag, and in a <td> tag - but <div> did the trick. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br />Thank you. <img src="http://www.ubbdev.com/forum/images/graemlins/IThankYou.gif" alt="" /> <img src="http://www.ubbdev.com/forum/images/graemlins/thankyousign.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks