|
Scroll Box 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.
[ ] Want to answer more questions in the Technology category? Maybe give some free advice about: Internet & Web Design?
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. ]
More Questions: |