How to add scrollbar on codebox - Codebox Plus
How to add scrollbar on codebox
how to do that, and how to show scrollbar on codebox?
thank's
-
- Registered User
- Posts: 14
- Joined: Tue May 14, 2013 6:01 am
- Contact:
Re: How to add scrollbar on codebox
styles/prosilver/theme/content.css
Find:
Code: Select all
/* Code block */
dl.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #d8d8d8;
font-size: 1em;
}
And add your changes here.
Code: Select all
/* Code block */
dl.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #d8d8d8;
font-size: 1em;
white-space: nowrap; /* No word wrap */
overflow: auto; /* Scroll bar */
max-height:300px; /* Max height*/
}
- randomessence
- Registered User
- Posts: 135
- Joined: Sun May 01, 2011 10:27 pm
- Contact:
-
- Registered User
- Posts: 14
- Joined: Tue May 14, 2013 6:01 am
- Contact:
Re: How to add scrollbar on codebox
randomessence wrote:openstyles/prosilver/theme/content.css
Find:Code: Select all
/* Code block */
dl.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #d8d8d8;
font-size: 1em;
}
...
Hello randomessence,
your solution is for default [ code ] scrollbar,
how to make scrollbar for Codebox Plus ?
(in COLLAPSE mode, show scrollbar; in EXPAND mode, show all of code
Thanks first
- 523066680
- Registered User
- Posts: 12
- Joined: Mon May 05, 2014 1:50 pm
- Contact:
Re: How to add scrollbar on codebox
- o0johntam0o
- Registered User
- Posts: 228
- Joined: Thu Sep 23, 2010 3:53 pm
- Location: Viet Nam
- Name: Tam
- Contact:
Re: How to add scrollbar on codebox
Should be done here: codeboxplus/styles/all/theme/style.cssrandomessence wrote:openstyles/prosilver/theme/content.css
Find:
And add your changes here.Code: Select all
/* Code block */ dl.codebox { padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; }
Code: Select all
/* Code block */ dl.codebox { padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; white-space: nowrap; /* No word wrap */ overflow: auto; /* Scroll bar */ max-height:300px; /* Max height*/ }
This:
Code: Select all
.codebox_plus_wrap { padding: 3px; background-color: #FFFFFF; border: 1px solid #D8D8D8; font-size: 1em; }
Code: Select all
.codebox_plus_wrap { padding: 3px; background-color: #FFFFFF; border: 1px solid #D8D8D8; font-size: 1em; white-space: nowrap; /* No word wrap */ overflow: auto; /* Scroll bar */ max-height:300px; /* Max height*/ }
-
- Registered User
- Posts: 84
- Joined: Thu Feb 09, 2017 7:02 pm
- Location: Egypt
- Contact: