Hey,
I'm trying to make a right justified, bullet on the right, list. The
only way that I've found is to use the "direction" attribute:
<style>
ul.rtl {
direction: rtl;
}
</style>
<ul class="rtl">
<li>test (test)</ul>
</ul>
This works, but the closing paren wants to render on the left side of
the line, so the render looks like this:
(test (test
although a copy and paste from the browser (IE 6.0) reveals it to be
this:
test (test)
I'm suprised it works, since I would have expected all the text to be
backwards, anyways, but I guess that's part of the algorhytm.
Anyhoo, can anyone point out a way to get this to render correctly?
Adding any character ("a-z", etc.) after the closing paren makes it
render the way I want.
Thanks!
oj 4 7208
On 5 Nov 2004 06:29:04 -0800, OJ <or*******@aol. com> wrote: This works, but the closing paren wants to render on the left side of the line, so the render looks like this: (test (test although a copy and paste from the browser (IE 6.0) reveals it to be this: test (test)
What happens when you use ) in place of )?
Neal <ne*****@yahoo. com> wrote in message news:<op******* *******@news.in dividual.net>.. . On 5 Nov 2004 06:29:04 -0800, OJ <or*******@aol. com> wrote:
This works, but the closing paren wants to render on the left side of the line, so the render looks like this: (test (test although a copy and paste from the browser (IE 6.0) reveals it to be this: test (test)
What happens when you use ) in place of )?
Same thing.
OJ wrote: I'm trying to make a right justified, bullet on the right, list.
My suggestion is to set list-style: none, justify the list to right, and set
the bullet as a background image.
Berislav
On Fri, 5 Nov 2004, OJ wrote: ul.rtl { direction: rtl; } </style> <ul class="rtl"> <li>test (test)</ul> </ul>
This works, but the closing paren wants to render on the left side of the line,
AFAICS that's because your Latin text is inherently ltr, and so it
comes out the correct way around by itself; but punctuation characters
such as parentheses mostly have neutral directionality, so they get
controlled by your rtl direction. You have to countermand that inside
of the individual list items to get the intended result.
Read http://www.w3.org/TR/REC-CSS2/visuren.html#direction
I'm suprised it works, since I would have expected all the text to be backwards, anyways,
No - read that CSS spec again. Particularly the bit about bidi
override and inline-level elements.
It looks to me as if one solution is to put the whole text inside a
<span>, and use that to countermand the directionality of the text
without upsetting the directionality of the <li> element. Trivial
test at: http://ppewww.ph.gla.ac.uk/~flavell/tests/rjlist.html
You can also do this in HTML with the dir= attribute - but you're
supposed to do that in HTML only to help to get the content correct
(for example, when you have mixed ltr and rtl writing in the same
piece of text[1]). Presentational effects (as it seems you want here)
are rightly delegated to CSS, as you are doing.
good luck
[1] for notes and samples, see http://ppewww.ph.gla.ac.uk/~flavell/...direction.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marco Bubke |
last post by:
Hi
I have read some mail on the dev mailing list about PEP 318 and find the new
Syntax really ugly.
def foo(x, y): pass
I call this foo(1, 2), this isn't really intuitive to me!
Also I don't like the brackets.
|
by: BenO |
last post by:
Hi
I'm new to python and need to write a function to replace certain characters
in a string (html).
The characters I need to replace come from MS Word copy & paste and are:
' (Left quote)
' (Right quote)
Double Left quotes
|
by: Jim Hubbard |
last post by:
It seems that Microsoft not only does not need the classic Visual Basic
developer army (the largest army of developers the world has ever seen), but
now they don't need ANY Windows developer at a small or mid-sized business.
http://groups-beta.google.com/group/microsoft.public.msdn.general/browse_thread/thread/9d7e8f9a00c1c7da/459ca99eb0e7c328?q=%22Proposed+MSDN+subscription+changes%22&rnum=1#459ca99eb0e7c328
Damn! To be that...
|
by: Alan Silver |
last post by:
Hello,
I am data binding a repeater that has a checkbox in the ItemTemplate.
The data value coming out of the database is a char(1) field containing
either "y" or "n". I want to use this value to set/unset the checkbox.
I tried the following in the ItemTemplate...
<asp:CheckBox ID="chkShowNpVar" Text=""
Checked='<%(DataBinder.Eval(Container.DataItem, "showVar")=="y" ? true :
|
by: Simon Verona |
last post by:
I've done a little searching using google, but I'm still confused... hoped
somebody can assist....
What I want to do is to have the option of having a window within my
application display a television channel - either a terrestrial channel
(using an aerial) or a satellite channel (I'm in the UK so I'm talking "SKY"
here).
I know that there are various suppliers of tv tuner/capture cards. Is
there a standard API to handle these?? ...
| |
by: Robin |
last post by:
I have set up a form with some basic input data, e.g. Name, Address,
Telephone number and a few selections from drop-down menus; and a submit
button.
I am using "mailto" to send the contents of the form when completed to an
e-mail address; however I want the information from the form to be formatted
in a particular way in the e-mails that are submitted. Can someone point me
in the right direction here.
Thanks
Mike
|
by: DiegoMx |
last post by:
I'm having a problem with "a:visited" properties overriding "a:hover" ones - here's the relevant part of my CSS:
a.barra
{
position:absolute; top:30px;
font-family:century gothic;
padding:10px;
font-size:12pt;
font-weight:bold;
color:#4855A9;
|
by: Daniel Greene |
last post by:
Dear Group,
I haven't been on this newsgroup in years. Hello again to village
elders Lars Eighner, Alan Flavelle, and Jukka Korpela! :-)
What brings me back? I was using the W3C QA to validate my XHTML the
other day, and I came across this "tip of the day" called "Use standard
redirects: don't break the back button!" It said, "If you want
http://www.example.org/foo to actually display what's at
http://www.example.org/bar you should...
|
by: kellygreer1 |
last post by:
Is there an easy way from .NET to register a Windows-wide keyboard
shortcut? I would like to bring up a WinForm window from an already
running .NET application whenever this keyboard shortcut is used.
I assume the way to do this is calling the Windows API from .NET.
Anyone have an experience with this? or can you point me in the right
direction?
Thanks in advance,
Kelly Greer
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |