Make Code Box Wider
+2
Vlajki
URFTV
6 posters
Page 1 of 1
Make Code Box Wider
Sometimes the coded words are too long and go down halfway and it looks pretty ugly, so how do i make the box a bit wider. Also, I want to make it so that you can scroll right in the box like you do to scroll up and down on a webpage, only right or left on the code box, how do I do these?
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
For scrolling the code box find this in your CSS
- Code:
.codebox dd {
- Code:
max-height: 300px;
overflow-x: auto;
overflow-y: auto;
Vlajki- Forumember
- Posts : 724
Reputation : 359
Language : Serbian & English
Location : Serbia
Re: Make Code Box Wider
I can't do that, because my CSS is blank.
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
Click See your forum basic CSS
And Copy it to the CSS box
then do the change.
And Copy it to the CSS box
then do the change.
Vlajki- Forumember
- Posts : 724
Reputation : 359
Language : Serbian & English
Location : Serbia
Re: Make Code Box Wider
I'm using PhpBB2 btw. I can't find that anyhere, and i searched with Opera and Mozilla.
I want this!!
I want this!!
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
possibly try and make the code in Microsoft Word and copy it in? worked for me
The Granny- New Member
- Posts : 2
Reputation : 0
Language : English
Re: Make Code Box Wider
BUMP
Last edited by URFTV on October 5th 2010, 10:55 am; edited 1 time in total
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
- Code:
.codebox dd {
max-height: 300px !important;
overflow-x: auto !important;
overflow-y: auto !important;
}
Try that.
blindbat1457- Forumember
- Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: Make Code Box Wider
Thanks a lot, that looks cool, but is there one that scrolls sideways.
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
URFTV wrote:Thanks a lot, that looks cool, but is there one that scrolls sideways.
Yeah. I think you make the overflow-y none.
blindbat1457- Forumember
- Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: Make Code Box Wider
it isn't working all i get is this!
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
blindbat1457- Forumember
- Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: Make Code Box Wider
I've been messing around with this for days! It still won't scroll sideways -_-
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
make overflow-y:none;
and overflow-x:scroll;
your problem is that you have alot of code going down but not enough going across to make it scroll.
and overflow-x:scroll;
your problem is that you have alot of code going down but not enough going across to make it scroll.
Re: Make Code Box Wider
URFTV wrote:I've been messing around with this for days! It still won't scroll sideways -_-
Hello,
Please try adding this code to your CSS.
- Code:
.code , .cont_code {
width: 600px;
overflow: auto !important;
}
It will enable the horizontal scrollbar and remove the increasing width if a code line goes longer.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Make Code Box Wider
Thanks! It worked!
Last edited by URFTV on December 13th 2010, 3:39 am; edited 1 time in total (Reason for editing : gramer)
URFTV- Forumember
- Posts : 237
Reputation : 0
Language : English
Location : Australia
Re: Make Code Box Wider
Solved > Locked
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Similar topics
» How to make my forum wider.
» how do i make my forum wider...
» How to make the announcement wider
» [Help] How can I make my forum wider?
» how to make the forum wider?
» how do i make my forum wider...
» How to make the announcement wider
» [Help] How can I make my forum wider?
» how to make the forum wider?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum