Free AdviceGet Free Advice
Home | Get advice | Give advice | Topics | Columnists | - !START HERE! -
Make Suggestions | Sitemap

Get Advice


Search Questions

Ask A Question

Browse Advice Columnists

Search Advice Columnists

Chat Room

Give Advice

View Questions
Search Questions
Advice Topics

Login

Username:
Password:
Remember me
Register for free!
Lost Password?

Want to give Advice?

Sign Up Now
(It's FREE!)

Miscellaneous

Shirts and Stuff
Page Backgrounds
Make Suggestions
Site News
Link To Us
About Us
Terms of Service
Help/FAQ
Sitemap
Contact Us


Scroll Box


Question Posted Sunday September 30 2007, 10:02 am

How do I get a scroll box to align right?
I have two scroll boxes. One I want to be on the left side of the page. The other I want to be on the right side of the page.
I want both scroll boxes to be on the same line/row.

Please give me a specific scroll box code. (HTML)
Don't just tell me to add "align=right" to the code,
because I tried it, and I can't figure out where it goes in the code.


[ Answer this question ]
Want to answer more questions in the Technology category?
Maybe give some free advice about: Internet & Web Design?


theymos answered Sunday September 30 2007, 7:13 pm:
That is done using the float attribute, not align. Just add:

style="float:left"

or

style="float:right"

to the first div or textarea in your scrollbox. Here is an example:

<div style="float:right;border: 1px solid black; text-align:center; overflow:auto; height:200px; width:200px">
<!--content-->
</div>

<div style="float:left;border: 1px solid black; text-align:center; overflow:auto; height:200px; width:200px">
<!--content-->
</div>

Here's how it looks in a browser:
[Link](Mouse over link to see full location)
Right click that page and "view source" to see the full source. Note that a scroll bar only appears when there is enough content to require scrolling; change overflow:auto to overflow:scroll if you want to change that.

[ theymos's advice column | Ask theymos A Question
]


More Questions:

<<< Previous Question: All my webcam videos GONE! HELP!
Next Question >>> Futures Field Hockey Tryouts

Recent popular questions:
Want to give advice?

Click here to start your own advice column!

What happened here with my gamer friends?

All content on this page posted by members of advicenators.com is the responsibility those individual members. Other content © 2003-2014 advicenators.com. We do not promise accuracy, completeness, or usefulness of any advice and are not responsible for content.

Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content.
Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.

[Valid RSS] eXTReMe Tracker