Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CODE block scrollbars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CODE block scrollbars

 Post Reply Post Reply
Author
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Topic: CODE block scrollbars
    Posted: 19 January 2007 at 11:05am
Mikey's post here contains a prime illustration of something that I'm finding quite frustrating - excessive scroll bars. My browser has scrollbars for scrolling round a page. Is there any simple way of turning off the excessive amounts of redundant scrollbars that appear when using the [C0DE] tags??

Instead of sizing properly vertically, the code blocks puts in a scrollbar that you can only access by scrolling down the browser to the scrollbars that are now appearing on the post itself, so you can scroll across, scroll back up (browser) to the code block, scroll the code so it's visible, scroll down (browser), scroll back across (post), scroll back up again just so I can see the beginning of the code line!

Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 12:18pm
Without the scroll bars the entire page would be stretched out of propertions, using the scroll bar method keeps the page at the correct size.
Handyman man?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 12:48pm
to get rid of the scrollbars (though like mikey, id advise keeping) just look for the following in the CSS file (default_style.css) and remove the parts in red:

.BBcode{
    font-family: Courier New, Courier, mono;
    border: 1px dashed #999999;
    width: 97%;
    padding: 5px;
    margin: 8px 0px;
    text-align: left;
    overflow: auto;
    display: block;
    padding: 5px;
}



Edited by Scotty32 - 19 January 2007 at 12:49pm
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 1:12pm
I agree with you that a horizontal scroll is needed on the code box to prevent the page width going ballistic, but there is no need for the vertical scrollbar on one line of text in the code box or either scrollbar that appears on posting/message area. The code box should surely scale to fit in the available width of the post?



Edited by MrMellie - 19 January 2007 at 1:25pm
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 3:10pm
That doesn't happen to me in FF2
Handyman man?
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 3:58pm
I won't be able to test that until I get home. Corporate policy dictates use of IE.
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 4:45pm
Perfik!! Looks spot on in FF.

Hurrah for IE's non-standard standards compliance!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.