how to align the scroller to the right?

admin

Administrator
Staff member
I have this code:


<div style="background-image: url('imags/2.jpg'); width: 740px; height:268px;">
<div style="padding-top: 14px;">
<p style="text-align: right; direction: rtl; width: 450px; height: 240px; overflow: auto; padding: 8px; background: transparent none;">
Helloe World
</p>
</div>
</div>


The way it is right now is that the scroller (text) is in the middle of the scrren. I wnt it to be to the right of the screen. How can I do it?

Thanks!The problem was that in IE your paragraph was still on the left side of the division so the text appeared to be in the center. Just add this and it should fix it:

<div style="background-image: url('imags/2.jpg'); width: 740px; height:268px;">
<div style="padding-top: 14px; text-align: right;">
<p style="text-align: right; direction: rtl; width: 450px; height: 240px; overflow: auto; padding: 8px; background: transparent none;">
Hello World
</p>
</div>
</div>
 
Back
Top