BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 8d, 15h, 57m | CPU: 19% | MEM: 5063MB of 12279MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPost subject: Making web pages right-to-left        Posted: Wed Oct 12, 2011 1:00 am 
Pro Beta Collector
Pro Beta Collector
Offline

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:
Image

It really works as an instant layout change, except for the punctuation and border.

_________________
you've got to fling yourself. fling into space.


Top  Profile
 PostPost subject: Re: Making web pages right-to-left        Posted: Wed Oct 12, 2011 5:23 am 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

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:
Image

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


Top  Profile
 PostPost subject: Re: Making web pages right-to-left        Posted: Wed Oct 12, 2011 6:07 am 
1337 Beta Collector
1337 Beta Collector
User avatar
Offline

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.

_________________
Image


Top  Profile
 PostPost subject: Re: Making web pages right-to-left        Posted: Wed Oct 12, 2011 9:42 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Mon Jul 19, 2010 8:34 pm

Posts
1452

Favourite OS
Windows 98
Oh nice. I have my Arabic forum and now I can read it normally :|

@spunker88: yeah there is, Arabic and Hebrew only AFAIK.

Nice idea. Thanks for pointing it out!


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 




Who is online

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

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS