diff options
author | smcv <smcv@web> | 2014-09-21 08:41:57 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-09-21 08:41:57 -0400 |
commit | 9b767f21a966506705d8d319c7123563d938f808 (patch) | |
tree | 4048a66c634a1fc33b6924cc27f12f96d26550c6 | |
parent | 34cf9a064614d908e1a74f3766eb6e43311b9de7 (diff) | |
download | ikiwiki-9b767f21a966506705d8d319c7123563d938f808.tar ikiwiki-9b767f21a966506705d8d319c7123563d938f808.tar.gz |
Added a comment
-rw-r--r-- | doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment b/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment new file mode 100644 index 000000000..8e2945665 --- /dev/null +++ b/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment @@ -0,0 +1,30 @@ +[[!comment format=mdwn + username="smcv" + ip="81.100.115.242" + subject="comment 9" + date="2014-09-21T12:41:56Z" + content=""" +[Authoring HTML: Handling Right-to-left Scripts](http://www.w3.org/TR/i18n-html-tech-bidi/) +might be useful reading. + +In [modern browsers](http://caniuse.com/css-sel2) (i.e. not IE6) it +should be possible to make CSS conditional on any attribute, not +just class, so you could maybe do something like this: + + /* ikiwiki's existing CSS */ + .sidebar { + float: right; + margin-left: 4px; + } + + /* new */ + html[dir=\"rtl\"] .sidebar { + float: left; + margin-left: 0px; + margin-right: 4px; + } + +If you contributed a patch for `style.css` to make markup like this +\"just work\", I'd be happy to review it. (`notebox` could use the +same technique). +"""]] |