Adding scroll bars to text
I have a limited amount of space with a lot of text. How do I limit the space by adding scroll bars
Without using iFrames, you can do this pretty easily using CSS. Add the following to the css for your text container...
.yourcontainer {
height:300px;
width:500px;
overflow-y:auto;
overflow-x:none;
then in the html, add the class to your container...
<div class="yourcontainer">All of your text here</div>
In the above example, the container div will be 500 pixels wide and 300 tall with a scrollbar if the text cotent gets longer than the height of 300 pixels.
Similar Messages
-
Adding scroll bar to a text box
Is there a way to add a scroll bar to a text box? I am designing a website using ID (in the web view) which I am then giving to a web person to implement. I have one page that is longer than the others, where I would like to be able to scroll the text. I would really appreciate a step by step instruction on how to add a scroll bar to this text box.
Thank you so much.The point is that exporting to Flash makes creating the webpage in ID seamless. I am not familiar with a
way to import an ID file into a Dreamweaver HTML. ID relies on pages that get converted to
frames on the Flash timeline which makes switching between pages, if you know enough ActionScript, a breeze.
However I did find this link which outlines some compatibility between ID and DW:
http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WS82C401A9-E844-40d5-B9B4-5 40CA374B0C6.html
Message was edited by: markerline -
Horizontal scroll bar on text item
Hi,
I have a text item. I have enabled Vertical Scroll Bar. I need to enable Horizontal Scrolling as well on the text item. How is this possible?
ThanksYes, you have to write a PJC that extends VTextArea, then add the following instruction in the init() method:
this.setHDisplayPolicy(1);You have also to set the Forms Wrap type property to none.
Francois -
Needed scroll bar in text field
Hi,
I have two text fields continuously. Sometimes either one get expanded. I kept all the fields in subform type positioned. Comments fields are getting enlarged when it has more number of lines. Lets say, If first field get expanded, it override the second one.
so I want to give scroll bar in a text field.
Thanks in advance.
RamYou should not use positioned subforms at all. If you need to move a field right for example, the wrap it into a subform and set the left margin of the subform. Do not use positioned subform and just move the field. You will probably resolve your problem if you remove content: positioned on all subforms relevant to your problem (for example all parents of the text fields).
Use content flowed and layout autofit as often as possible!
Otto -
Hi, I have a frame that pops out from my applet, and I want to add scroll bars to this frame. Using JScrollPane does not work. The scrollbars do not show up even when the image that is displayed on the frame does not fit in the current frame size. Is there a good way to do this? Thanks.
Container c=getContentPane();
c.setLayout(new FlowLayout());
JScrollPane pane=new JScrollPane(your Component or frame);
c.add(pane) -
Hi guys,
Can anyone help me to add a scroll bar to a frame which contains a panel. The panel contains some Labels and one buttton.
Please suggest it using java.awt package(not swings).But can you please tell me how to implement that.
I am helpless. I can't find away out.Oh come on, look at the API docs. Put your Panel with the correct size into the ScrollPane, put the ScrollPane into the Frame, done. -
Hello
Could anybody suggest me how can I add scroll bar in Jlist. I tried this one, but it did not work
JList list = new JList(subject);
JScrollPane scrollPane = new JScrollPane(list);
Thanks
PrashanthPosting another question without replying to the responses on your previous thread, are you? Good luck getting help with this one.
db -
hi i'm new so be easy on me please... i am trying to figure out how to add vertical and horizontal scroll bars to my jlabel. I am using sun one studio 5 on this project which allows me to manually place vertical and horizontal toolbars but when i do that they don't work w/ the image that i'm trying to scroll...i know that i have to code so that the scroll bars know to function w/ the jlabel but thats all i know. please advise~ thanks
well, I don't know about doing things with Sun One Studio, but....
Generally, if you want to scroll something, you would create a JScrollPane instance and add a component to it's viewport. That component could be a JLabel, so you wouldn't be scrolling the label so much as scrolling the pane. The effect would probably be same thing you are trying to see.
You can use scrollbars in your own component, but the main reason not to do that is that managing the scrollbar states and dealing with paging and whatever is just a pain. -
Adding Scroll bar InPanel Array
I want to add scroll bar in panel array .Kindly help me to sort this problem immdiatedly
Kindly help me to sort this problem immdiatedly Based on the information provided, I doubt we will be able to.
The general advice is add your panel to the scrollPane and add the scrollPane to the GUI. Its that simple.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting. -
Hello - im building a site, and i want to incorporate a
scroll bar for text, as i want each page layout to be the same, and
not useing a scroll bar will not let me achieve this. I have tried
to use a textArea, but here i cannot chnage the font and style of
the text, it defuals to courior, and also puts a horrid grey
outline to the text area, which i do not want. This is really
annoying !!!
I hope someone can help me quickly !!!
Thanks in advance
S.oO(simey70)
>Hello - im building a site, and i want to incorporate a
scroll bar for text, as
>i want each page layout to be the same, and not useing a
scroll bar will not
>let me achieve this.
Remember that such a scrollable content area will often
affect the
site's overall usability. In the worst case the visitors
might end up
with multiple scroll bars.
>I have tried to use a textArea, but here i cannot chnage
>the font and style of the text, it defuals to courior,
and also puts a horrid
>grey outline to the text area, which i do not want. This
is really annoying !!!
>
> I hope someone can help me quickly !!!
Google for "scrollable div" or something like that.
Micha -
Where is the Scroll bar of the page?
Hello,
When I start doing my website on Flex 4 using flash builder eclipse plugin, and when I test my pages how they looks I can't see the scroll bar to to see the buttom of the page!! well I thought can be a bug or something but until now I still unable to see the buttom of the pages !
I read this http://stackoverflow.com/questions/4627659/flex-4-scroller-skin, but I didn't understand what should I do exactely !
should I create my scroll bar manually to be able to make a scroll ?
Please I need a solution
Anyone !see an example in action:
http://trumpboston.com/helpothers/example03521/scroll.html
it came from this example source code:
http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-contain er-in-flex-4/
the first module make it be your application mxml
the second one, under your src directory, create a "skins" folder and save in there the file:
skins/CustomScrollingApplicationSkin.mxml
notice the slider on the top that will increase the height of your content to show the scrollbar jumping around in its height. -
Adobe Captivate 4 Adding a Scroll Bar to a Text Caption
I have a lot of text information to show on one slide and I'd like the user to have the ablility to stay on one slide but scroll down.
Is there any way to add a Scroll Bar to a Text Caption to allow this to function as described?There is no way to add a scrollbar to a normal Captivate text caption.
There DOES however exist a widget that provides something simlar:
http://www.dorna.nl/?p=574 -
Hello,
I've got a dynamic text box in my flash file that reads a txt
file in a directory for information. I'd like for it to have scroll
bars like the ones in the component scrollpane.
In the help file, it says that the scrollpane can be added to
a text box, but when I click on it further for more information it
only says it can hold swfs, jpgs etc...
is it possible to make those flashmx default scroll bars onto
a text box?
I'm using Flash MX 2004.You can do that but you would have to install the MX
componentes into MX2004 first. They used to be availabele at
Macromedia for downlaod, I guess they are somewher to be found at
Flash donloads at adobe still now. -
Hello
I have designed this website for my client... http://www.applebybowers.com/for_web/
They wish to add a vertical scroll bar to the middle where the majority of text is so that more text can be added if necessary without the res of the page disappearing out of view on smaller monitors.
Can anyone advise the best way to go about this.
ThanksI'm not crazy about it either, but sometimes the client just won't change their mind no matter how much you try to persuade them!
It's actually only on one page that I need the scroll bar - http://www.applebybowers.com/for_web/news.html
The client would like a scroll bar here so that all of the news articles can be viewed on one page without the rest of the page disappearing off the monitor.
I read Bob's advice but now that I've come to have a go at adding the code I'm not sure where to add it. Also, do I need to add a div inside the table cell, and if so how do I do that? I've looked on a few forums and found similar bits of code to use but haven't got a clue where to include it...
<div style="overflow: auto; height: 100px; width: 200px;">Put your text or images or anything in here.</div>
Would someone please have a look at my code and advise me on what I need to do.
Thanks. -
After applying full scroll bar to the page including header and footer, I have provided content to
the page more than 100 lines and try to format the text from ribbon actions(format text area). On mouse over of font or fore color, the control jumps to the highlighted content area and not able to select the color. The page scrolls down and not able to click
on any action.
Consider this scenario also.
A content editor web part is added toward the bottom of the page.
Text is added to this (direct in the web part, not via a 'content link')
You highlight some text and go to the Markup Style dropdown...
Everything is fine until you hover over the "Paragraph" markup style, and suddenly the page scrolls to the web part you are editing, and you didn't have a chance
to click and apply the "Paragraph" formatting
I have tried testing this with text typed directly into the Content Editor, text pasted in from somewhere else, and text pasted in from somewhere else using "Paste as
Plaintext" option in the ribbon. In each scenario, I get the same results.
Furthermore, I have also tested this in both IE8 and IE9 and get the same results.
I can get it to occur most regularly with trying to apply the Paragraph "Markup Style" but
I've also seen this happen with Font Size (any font size). It's very frustrating since you aren't able to actually apply the formatting you need because the page jumps before you can click. Has anyone experienced this before. Any feedback would
help.Hi,
According to your post, my understanding is that after applying full scroll bar to the page including header and footer, Text editor ribbon actions cause page to automatically scroll down (while applying formatting).
I try to apply full scroll bar to the page including header and footer, the ribbon is missing after I scroll down to the web part. And I cannot apply the "Paragraph" markup style to the content.
I recommend to use the SharePoint core styles to preserve the native functionality and GUI.
By design in SharePoint, the ribbon is always at the top. When you select the content, you can apply the "Paragraph" markup style in the ribbon.
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support
Maybe you are looking for
-
My husband and I both have iphones and everything was ok until I synced his phone and lost all his contacts and pixs. I downloaded verizon's contact retreival app and got his contacts back but now his contacts keep overwriting mine. I can sync my pho
-
I'm the only one who can submit PDF by e-mail!
OK so I created this form, and I made the button to submit the PDF not the XML, and it worked great. For me. The e-mail recipient tells me when anyone else tries to submit the form, the button changes color but nothing else happens. No e-mail window
-
Hello Im a beginner at InDessign and hope that someone could help me with at problem with text. I have several documents saved as CS and have now upgraded to CS4. In these documents I have several textboxes that I would like to edit. I can write text
-
Lenovo g550 VERY Strange Keyboard Problem
Hello All, Sometimes, whenever I type on my Lenovo g550 laptop, the letters will sometimes stop working. For example, if I press and normal letter key such as "k" it will come out 0 and if I keep pressing the key it will type 01234567890 and kee
-
Monitoring Add-On - HTTP 500 Server Error?
Hello everyone, I'm trying to get the new BO Monitoring Addon from the InnovationCenter working on our test environment but I ran into a problem with the Crystal, DeskI and WebI Probes. If I configure them to use a not existing report, it works as ex