Advertise Here

Author Topic: [code] Getting rid of all scroll bars  (Read 2766 times)

0 Members and 1 Guest are viewing this topic.

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
[code] Getting rid of all scroll bars
« on: November 24, 2008, 07:57:02 pm »
You know when users have too large of an avatar, and a scroll bar appears and what-not? Or rather when you make a large post with an image and the image is too large for the optical container and stretches the page with a scroll bar?

Well, here's a method that will "hide" scroll bars and force the rendered item to contain itself:

Make sure you have a reference to jQuery in your headers.

Code: [Select]
<script src="/jquery.js"></script>
Now, insert this into your headers after the declaration for jQuery:

Code: [Select]
<script language="javascript" type="text/javascript">
<!-- // --><![CDATA[
$("body").css("overflow", "hidden");
$("body").css("overflow", "auto");
// ]]></script>

Alternative:

Edit your CSS file, add the following into your body rule:

Code: [Select]
overflow: hidden auto;
« Last Edit: November 25, 2008, 05:47:42 pm by ccbtimewiz »

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Getting rid of all scroll bars
« Reply #1 on: November 24, 2008, 08:30:44 pm »
cool tyvm ccbtimewiz great code

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Getting rid of all scroll bars
« Reply #2 on: November 25, 2008, 09:42:31 am »
i tryed it out today it worked great  ;)

Offline SpazzinOut

  • SMF For Free Newbie
  • *
  • Posts: 14
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [code] Getting rid of all scroll bars
« Reply #3 on: February 20, 2009, 07:11:57 pm »
it doesn't work for me

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [code] Getting rid of all scroll bars
« Reply #4 on: February 20, 2009, 09:51:49 pm »
it doesn't work for me
Make sure you have this in the header section of your forum
Code: [Select]
<script src="/jquery.js"></script>
I would then add this to the header section as well:
Code: [Select]
<script language="javascript" type="text/javascript">
<!-- // --><![CDATA[
$("body").css("overflow", "hidden");
$("body").css("overflow", "auto");
// ]]></script>

Now to go Admin CP-> Manage styles->
>Modify style
Pick the style you are currently using

Add this to your body rule as said above:
Code: [Select]
overflow: hidden auto;
Let us know if it still doesnt work.


Offline SpazzinOut

  • SMF For Free Newbie
  • *
  • Posts: 14
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [code] Getting rid of all scroll bars
« Reply #5 on: February 21, 2009, 02:22:25 pm »
Yes i have it all in correctly, but it doesn't get rid of the scroll bar on the avators.  :uglystupid2:

Offline Doctor Dino™

  • SMF For Free Newbie
  • *
  • Posts: 8
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [code] Getting rid of all scroll bars
« Reply #6 on: February 21, 2009, 11:40:22 pm »
An Image I think..  :-X

Offline SpazzinOut

  • SMF For Free Newbie
  • *
  • Posts: 14
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [code] Getting rid of all scroll bars
« Reply #7 on: February 28, 2009, 02:35:44 pm »
if it worked for you...what size are u trying to make ur avis? i need 250x400 on the size. i can do this with a paid version it is missing part of its code.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1386 Views
Last post May 12, 2006, 03:37:53 pm
by gambit
2 Replies
2864 Views
Last post February 20, 2007, 05:40:15 pm
by littlebouncers
65 Replies
15098 Views
Last post March 01, 2008, 08:39:08 am
by Agent Moose Jr.
10 Replies
1537 Views
Last post March 28, 2008, 12:05:32 pm
by clairebear
7 Replies
3832 Views
Last post August 26, 2008, 08:23:21 pm
by Shimmy Shabby