The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Scroll box

3 posters

Go down

Solved Scroll box

Post by Saxaca September 19th 2010, 21:36

Ok, you know when you enter a long code in a code box, it makes it so it kinda scrolls down.

Whats the code for making a box like that?

Seriously, i dont know. ...


Last edited by Saxaca on September 20th 2010, 16:34; edited 1 time in total
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Scroll box

Post by Sanket September 19th 2010, 21:39

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Scroll box

Post by Saxaca September 19th 2010, 21:44

Well, that doesnt really help me, a code like this:

Spoiler:

(LOL, yeah, i know that one doesn't work..)

EDIT:

I mean, without it standing code, like just:

TEXT |
TEXT |
TEXT |
TEXT |

Lol, the |'s is the scrollbar.
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Scroll box

Post by RoNo September 20th 2010, 00:40

You can use a div for that.
Try the codes below in *this editor
Code:
<div style="width: 200px; height: 100px; overflow: scroll; border: black 1px solid; background-color: lightblue;">
A div with overflow:scroll <br>
in the style tag will<br>
give you scroll bars.<br><br>

Code:<br>
style="width: 200px; height: 100px; overflow: scroll; border: black 1px solid; background-color: lightblue;">A div with overflow:scroll <br>
in the style tag will<br>
give you scroll bars.

</div>

<br><br>

Version #2

<div style="width: 200px; height: 100px; overflow: auto; border:red 1px solid">A div with overflow:auto <br>
in the style tag will<br>
give a scroll bar<br>
on the left only<br><br>
Code:<br>
style="width: 200px; height: 100px; overflow: auto; border:red 1px solid">
</div>

<br><br>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Scroll box

Post by Saxaca September 20th 2010, 16:31

Thanks RoNo! That's exactly what i wanted! Smile
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Scroll box

Post by Sanket September 20th 2010, 20:26

Since this thread is marked solved, I will lock this thread.
Scroll box 2j4t5a8

Sanket Smile

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum