Click here to Skip to main content
15,889,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,
I've created an asp.net web page , and it worked except when i flip the page rtl it gave me a large space to the left only when the elements in the page are wider than the page default width , how can i solve this , i thought the problem is in the elements so i created an empty website with only a table with width 2700px and a gave it a border when its ltr there's no problem but when i flip it the problem shows ! how can i solve it because i really need to flip the webpage :(
Posted
Comments
AshishChaudha 15-Oct-12 3:08am    
Please show us your HTML code.
ayat abukhadra 15-Oct-12 4:31am    
<html runat="server" dir="rtl">
<head runat="server">
<title>Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="border :thin solid #000000" width ="2700px">
<tr>
<td>
test
</td>
</tr>
</table>
</div>
</form>
</html>
ayat abukhadra 15-Oct-12 4:32am    
I'm not adding anything to the page except this table =S , what can be the problem =S

1 solution

Why you are fixing the width of the table 2700px. and fix the size of the elements you are fixing inside this table.

XML
<html  runat="server" dir="rtl">
<head  runat="server">
<title>Page</title>
</head>
<body>
<form id="form1"  runat="server">
<div>
<table style="border :thin solid #000000" width ="100%">
<tr>
<td>
test
</td>
</tr>
</table>
</div>
</form>
</html>
 
Share this answer
 
Comments
ayat abukhadra 15-Oct-12 4:56am    
I'm using a grid not a table so i need it to have a fixed size and the 100% didn't work , is there's another way to do it ?
AshishChaudha 15-Oct-12 4:59am    
Make it 1000px. and if your gridview column is more so that the page is getting scrolled then use div with scrollbars.
ayat abukhadra 15-Oct-12 5:48am    
I'm gonna try it , Thanks For your help =D
AshishChaudha 15-Oct-12 5:59am    
Yours welcome. Please mark it answer if it get solved..
ayat abukhadra 15-Oct-12 10:07am    
I found out whats wrong , my browser was IE7 and i tried the website using Chrome and IE8 and it didn't show that large space .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900