Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I open a page aligned to the right 1

Status
Not open for further replies.

tango1948

Programmer
Dec 23, 2006
111
IL
Hi,

I have a web page that I need to scroll left or right to see all the content. The page by default loads left aligned.
Is it possible to load the page aligned to the right, if so how ?

Thanks for any help

David
 
Yes, you can. As for how, we would need to know how the page is displayed now, before we could offer you intelligent design. Can you post URL or failing that code to the page?

As an easy solution, you could use [tt]direction: rtl;[/tt] on the style of the body of the page.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Hi Vragabond,
Thanks for your suggestion it works when the page is initialy loaded, but if I select an item from the drop down list or use the Prev or Next buttons then the page reverts to left alignment, any way to keep it right aligned?

I've included the code - hope you can make sense of it.

The encoding is Hebrew(ISO-Visual)

Code:
<FORM name="big" action=" ">

<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8">
<SCRIPT LANGUAGE="Javascript">

var slctd

function slctPrevTlush()
{ slctd = document.big.link.selectedIndex;
  if(slctd > 0)
      window.location = document.big.link.options[slctd - 1].value;
  if(slctd > 0)
      document.big.link.selectedIndex = slctd - 1;
}
function slctNextTlush()
{ slctd = document.big.link.selectedIndex;
  if(slctd < document.big.link.options.length - 1)
      window.location = document.big.link.options[slctd + 1].value;
  if(slctd < document.big.link.options.length - 1)
      document.big.link.selectedIndex = slctd + 1;
}
</script>
<style type="text/css">
@media print {
.tlush {background-image: url("[URL unfurl="true"]http://www.mll.co.il/images/tlush/otlushls.gif");[/URL]
        background-repeat: no-repeat;
        background-position: 6px -2px;
        overflow: hidden;
        margin: 0cm 0cm 0cm 0cm;
        left: 100px;
        width: 500px;
        height: 1015px;
        line-height: 10px;
        position: relative;
        writing-mode: tb-rl;
        page-break-after: avoid}
.clsLink{display: none}
.clsS1{display: none}
.tmplt{display: none}
#footer{display: none}
}
@media screen
{
div.tlush
{background-image: url("[URL unfurl="true"]http://www.mll.co.il/images/tlush/otlush.gif");[/URL]
background-position: -3 5;
background-repeat: no-repeat;
direction: ltr;
position: relative;
overflow: hidden;
width: 1015px;
line-height: 10px;
pagebreak-after: always}
div.main
{
position: relative;
overflow: auto;
top: 80px;
width: 1025px;
height: 540px;
}
.tmplt
{ position: absolute;
  color: navy;
  top: 20px;
  left: 550px;
  width: 250px;
  font-family: monospace;
  font-size: 15px
}
.clsLink
{ position: absolute;
  color: navy;
  top: 25px;
  left: 405px;
  width: 300px;
  font-family: monospace;
  font-size: 15px
}
.clsS1
{ position: absolute;
  background-color: silver;
  color: navy;
  top: 25px;
  left: 10px;
  width: 370px;
  font-family: monospace;
  font-size: 15px
}
.tbl,.tbl TABLE, .tbl SELECT
{ font-family: monospace;
  font-size: 11pt;
}}
</style>
<body style="direction: rtl;">
<DIV Style="position: absolute; height: 120px; width: 100%; ">
<BDO dir="rtl">
<label class="tmplt" style="left: 595px; top: 3px; width: 100px; font-family: arial; font-size: 16px; text-decoration: underline">??? ????:</label>
<label class="tmplt" style="left: 250px; top: 3px; width: 130px; font-family: arial; font-size: 16px; text-decoration: underline">??"? ?????:</label>
<input type="button" name="bl" class="tmplt" value="Prev" style="top: 50px; left: 405px; width: 50px; font-family: arial; color: maroon"  onClick="slctPrevTlush()">
<input type="button" name="b2" class="tmplt" value="Next" style="top: 50px; left: 475px; width: 50px;  font-family: arial;  color: maroon" onClick="slctNextTlush()">
<select name="link" class="clsLink" onChange="location=document.big.link.options[document.big.link.selectedIndex].value;">                                                                                                                      
<OPTION VALUE = "#021954052">?????? ????&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 1008</option>
<OPTION VALUE = "#034027151">?????? ???&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 1009</option>
<OPTION VALUE = "#028719094">??? ????&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 1014</option>
<OPTION VALUE = "#039133996">????? ????&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 1029</option>
</select></BDO>
<select name="S1" class="clsS1">
<OPTION>??"? ??????? ??? ???????.....859492.75</option>
<OPTION>??"? ?????? ????...............1136.00</option>
<OPTION>??"? ?????? ????.............164955.83</option>
<OPTION>??"? ??? ??????..............693400.92</option>
<OPTION>??"? ?????? ???????.................97</option>
<OPTION>??"? ?????? ??????..................98</option>
<OPTION>??"? ????? ????.....................98</option>
<OPTION>??"? ?????? ???? ???.................0</option>
<OPTION>??"? ?????? ?????....................1</option>
</SELECT></DIV>
<DIV Class="main">
<a name="021954052"></a>
<DIV class="tlush" id="div_tlush001"><PRE>

                                                         "?????" ?????
50    9           ????             2007 ?????                  1              1008     935715573            ?"?? ???? ?? 741

               ???
               ? ? 0   0 1     ?   ?    250286     10000        000000 11   01060511026   179302 21954052      ???? ??????
                                                                                                          ?? ?? 000021 ?????

   28182??? ?????                          620000      ????? ???
    3333??? ?????






                    620000                                        620000


                                                  51100 ????? ??   22000                       ?      ????? ??????105
                                                  16208  ?????.? 1498200                             ?????? ??????111
                                                  24303 ??????.?   15900                                     ?????148











                                                  91611          1536100
          25                         25 21.0                     2156100


                              2.25                                                                      ?.? ???
 2064489                       401              2064489   6579                14982                               6579
                                         401                 ?? ?????
                                                           511   6579                                                     405
                                                                                                                        ?????

                       83        83       10.0 ?????
                                                ????                                              ?????? ???? ?????





</PRE></DIV><BR><BR>
<a name="034027151"></a>
<DIV class="tlush" id="div_tlush002"><PRE>

                                                         "?????" ?????
50    1           ????             2007 ?????                  2              1009     935715573            ?"?? ???? ?? 741

               ???
 1 2101        ? ? 0   0 1     ?   ?    290377     10000        000000 11   010605 0000          34027151       ??? ??????
                                                                                                        ??? ??? 000066 ?????

   54545??? ?????                         1200000      ????? ???
    6452??? ?????





                                        1/02/2007 -? ????? ?????
                   1200000                                       1200000


                                                1309200 ????? ??         133000                ?    ????? ??? ????030
                                                 182663  ?????.?           8500                ?       ?????? ????050
                                                 143199 ??????.?  820000                                 ????? ???101
                                                  68800      ???*1705200                             ?????? ??????111
                                                  37500  ???????* 290000                                     ?????118
                                                                   45200                          ????? ???? ?????132
                                                                 1102900                          ??? ???? ???????144
                                                                   19900                                     ?????148
***********************************************                           32800                   ????.?? ??? ????G02
 ?????   ?????    ????    ?????   ?????? ?????*                   531629                                    ????? GMS
----------------------------------------------*
   328     688   13760     5.0%       ????????*
          1125   15000     7.5%     ???????.??*

                                                1741362          4514829 174300
          25                         25 48.0                     5714829


                   126        2.75                                                                      ?.? ???
 3973467                       490              3973467  41387                17504          5316   4230         27627  13760
                                         616                 ?? ?????
                                                         13092  30358                                       375    688   3259
                                                                                                     375   1125    688  ?????

                       83        83       10.0 ?????
                                                ????





</PRE></DIV><BR><BR>
<a name="028719094"></a>
<DIV class="tlush" id="div_tlush003"><PRE>

                                                         "?????" ?????
50  151          ?????             2007 ?????                  3              1014     935715573            ?"?? ???? ?? 741

               ???
 1             ? ? 0   0 1   1 ?   ?    101171                  000000 11   01090517672   274410 28719094         ???? ???
                                                                                               40300 ???? ??? 000005 ???????

   20280??? ?????                                                                                      250     ????? ???
    2400??? ?????                                                                                       50      ???? ???
                                                                                                3830401596     ????? ???
                                                                                                 28440  79       %150?.?


                                                                  411480




                                                  15551  ?????.?   50000                       ?        ??? ??????104
                                                  23833 ??????.?    3000                                ??? ??????104
                                                  21312      ???  118600                                     ?????118
                                                                   14400        375  160   2400    %37.5???? ?????142
                                                                   28800        750  160   2400      %75???? ?????143
                                                                   15000                                ?"? ??????160
                                                                    7227                                    ????? GMS
                                                                                     330       ?  ????? ???? ?????002

***********************************************
 ?????   ?????    ????    ?????   ?????? ?????*
----------------------------------------------*
           213    4262     5.0%       ????????*

                                                  60696           237027
          25                         25 21.0                      648507


                    47        4.75                                                                      ?.? ???
  587811                       846               587811   6485                                 72    530          2223   4262
                                         892                 ?? ?????
                                                                 6485                                              213    394
                                                                                                                   213  ?????

                       83        83       10.0 ?????
                          3300                  ????





</PRE></DIV><BR><BR>
<a name="039133996"></a>
<DIV class="tlush" id="div_tlush004"><PRE>

                                                         "?????" ?????
50  151          ?????             2007 ?????                  4              1029     935715573            ?"?? ???? ?? 741

               ???
               ? ? 0   0 1     ?   ?    170583                  000000 10   01020612612   183106 39133996       ???? ?????
                                                                                                    42428 ????? 000014 ?????

   17745??? ?????                                                                                      280     ????? ???
    2100??? ?????                                                                               3704191764     ????? ???
                                                                                                 26964  86       %150?.?



                                                                  397383




                                                  10100 ????? ??    6600                                ??? ??????104
                                                   5483  ?????.?    3600                                ??? ??????104
                                                  16642 ??????.?   22000                       ?        ??? ??????104
                                                                   59300                                     ?????118
                                                                   15797                                    ????? GMS









                                                  32225           107297
          25                         25 21.0                      504680


                              2.75                                                                      ?.? ???
  472455                       490               472455   5047                                158    322          5047
                                         490                 ?? ?????
                                                           101   5047                                                     221
                                                                                                                        ?????

                       83        83       10.0 ?????
                                                ????





</PRE></DIV><BR><BR></DIV>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top