On 08/14/2010 02:28 PM, foo bar wrote:
On 08/08/2010 12:17 AM, Netanel Shine wrote:
btw, it should be RTL, if you didnt know, mybe because of that it display
like a bug.
If we set the lang-attribute on the <body>-tag, we can use CSS to swich
the whole body to direction:rtl;.
(Somehow my chromium does not check the <xml>-tag's lang-attribute.)
This is demonstrated here: http://keks.selfip.org/tmp/aur-lang.html
I will upload a patch for that shortly.
<http://keks.selfip.org/tmp/aur-lang.html>
I just noticed you are setting xml:lang and lang on the <html>-tag. So
there isn't even any change needed. (Btw. that why I hate php, mixing
markup and code is extremely obscure)
The main problem seems to be the frequency of text-align-declarations in
the existing style-sheets.
This is what I have atm:
<------------ snip ------------->
diff --git a/web/html/css/containers.css b/web/html/css/containers.css
index fc092de..fe7d26b 100644
--- a/web/html/css/containers.css
+++ b/web/html/css/containers.css
@@ -3,6 +3,12 @@ body,table,td,img {
margin: 0;
padding: 0;
}
+
+/* Language specific formatting */
+body:lang(hu) {
+ direction:rtl;
+}
+
/* Main Wrapper Data Format */
td.preHeader {
background-color: #000;
<--------------- snap ------------------>
It would be nice to get some comments from right-to-left reading people.
Why does direction:rtl; put punctuation at the beginning of the line? Is
that wanted behavior or just a browser bug?
--
irc: PyroPeter at freenode