Post subject: Making web pages right-to-left Posted: Wed Oct 12, 2011 1:00 am
Pro Beta Collector
Joined Tue Oct 23, 2007 11:21 pm
Posts 593
The dir property in HTML <html> and <body> tags allows writing in right-to-left scripts on web pages. All browsers support it and it's almost unknown, but it can lead to funny results when a page with a layout or not written in a right-to-left script is forced to render in right-to-left mode.
Add this URL to your favorites bar, since most forums don't let me link directly to javascript: links:
Code:
javascript:document.body.dir='rtl';void(0);
If you really use Firebug or any other in-browser HTML editor, add or change the dir property on <body> or <html> to "rtl".
For example, on BA:
It really works as an instant layout change, except for the punctuation and border.
_________________ you've got to fling yourself. fling into space.
Post subject: Re: Making web pages right-to-left Posted: Wed Oct 12, 2011 5:23 am
Pro Beta Collector
Joined Mon Sep 27, 2010 3:07 am
Posts 559
Location On Earth
Favourite OS Any Mac OS/Any Free OS
RichardGatinho wrote:
The dir property in HTML <html> and <body> tags allows writing in right-to-left scripts on web pages. All browsers support it and it's almost unknown, but it can lead to funny results when a page with a layout or not written in a right-to-left script is forced to render in right-to-left mode.
Add this URL to your favorites bar, since most forums don't let me link directly to javascript: links:
Code:
javascript:document.body.dir='rtl';void(0);
If you really use Firebug or any other in-browser HTML editor, add or change the dir property on <body> or <html> to "rtl".
For example, on BA:
It really works as an instant layout change, except for the punctuation and border.
I like it!
Completely useless, but it might be handy for some jokes…
_________________ "I not have a time to spend for make fake, and more important thing, this pics are not my."
Pointless. Locked. -linuxlove
"If only Windows 8 was as revolutionary as Vista."-hounsell
Post subject: Re: Making web pages right-to-left Posted: Wed Oct 12, 2011 6:07 am
1337 Beta Collector
Joined Sun Oct 18, 2009 2:04 am
Posts 1661
Favourite OS 2428
In IE you can opposite click on the page, go to Encoding and switch to Right to Left and it has the same effect. I think there are some languages read right to left and that is why the option is there, but I'm not 100% sure.
Users browsing this forum: psbot [Picsearch] and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.