473,805 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I set bullets on right side of ordered list?

Hi,

How can I configure an ordered list so that the bullet is placed on
the right hand side of the list item. ie:

list item 1 *
list item 2 *
list item 3 *

Thanks,

Stephen
Jul 20 '05 #1
6 35592
In article Stephen Miller wrote:
Hi,

How can I configure an ordered list so that the bullet is placed on
the right hand side of the list item. ie:
CSS2:
li {display:block; list-style:none;}
:after {display:marker ;content:"*";}
(no, it doesn't work. maybe it will in 10 years)
list item 1 *
list item 2 *
list item 3 *


You need use some workaround. I can't think any whiout extra markup.
Please tell some more about what you want, and what is your content. And
why you want those bullets on right.

Your generic example has three list items that has same lenght. What you
want to happen when that is not the case? Is your list supposed to be
aligned to some side? etc. Best would be otherwise ready page with real
content.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2
In article <MP************ ************@ne ws.cis.dfn.de> in
comp.infosystem s.www.authoring.stylesheets, "Lauri Raittila" wrote:
You need use some workaround. I can't think any whiout extra markup.


I wonder what happens in Hebrew text, or other right-to-left
scripts?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
Stan Brown <th************ @fastmail.fm> wrote:
I wonder what happens in Hebrew text, or other right-to-left
scripts?


You don't need Hebrew for this. You can use the dir attribute in HTML:

<ul dir="rtl">
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>

Note that this will appear on the right side of the available area.

The text in the list items, if written in Latin letters, will still run
from left to right, since it has inherent directionality and the dir
attribute shall not override that. Well, I'm not so sure of what
browsers actually do (they are known to take the dir attribute as
overriding inherent directionality in some cases), and since this is
presentational only, I would try to use CSS instead:

ul { direction: rtl; }
li { direction: ltr; }

The bad news is that on IE 6, this creates a presentation that has _no_
bullets. A strange bug. Using just the first rule creates the same
effect as the HTML attribute.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #4

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
Stan Brown <th************ @fastmail.fm> wrote:
I wonder what happens in Hebrew text, or other right-to-left
scripts?
You don't need Hebrew for this. You can use the dir attribute in HTML:

<ul dir="rtl">
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>

Note that this will appear on the right side of the available area.


The text in the list items, if written in Latin letters, will still run
from left to right, since it has inherent directionality and the dir
attribute shall not override that. Well, I'm not so sure of what
browsers actually do (they are known to take the dir attribute as
overriding inherent directionality in some cases), and since this is
presentational only, I would try to use CSS instead:

ul { direction: rtl; }
li { direction: ltr; }

The bad news is that on IE 6, this creates a presentation that has _no_
bullets. A strange bug. Using just the first rule creates the same
effect as the HTML attribute.

I did find a couple of permutations of styles on UL and LI that caused the
bullets to disappear. The following code works in IE6 and Firebird, with the
bullets on the right, and with the text left-aligned--but also
left-indented. I tried to get rid of the indentation but couldn't figure out
how.

<style>
li { direction: rtl; text-align: left; }
</style>

<p>Hello</p>
<ul>
<li>One</li>
<li>Two</li>
</ul>

Jul 20 '05 #5
Stephen Miller wrote:
Hi,

How can I configure an ordered list so that the bullet is placed on
the right hand side of the list item. ie:

list item 1 *
list item 2 *
list item 3 *

Thanks,

Stephen


You can do it with an unordered list using a background image as the bullet:

ul li {
background: url(images/bullet.gif) no-repeat right;
text-align: right;
margin-right: 0;
padding-right: 1.5em;
list-style: none;
}

Why do you want a list with a number and a bullet?

--
Must fly

Roy

www.reeddesign.co.uk
Jul 20 '05 #6
Thanks Jukka, That's just what I needed :)

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message news:<Xn******* *************** *******@193.229 .0.31>...
Stan Brown <th************ @fastmail.fm> wrote:
I wonder what happens in Hebrew text, or other right-to-left
scripts?


You don't need Hebrew for this. You can use the dir attribute in HTML:

<ul dir="rtl">
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>

Note that this will appear on the right side of the available area.

The text in the list items, if written in Latin letters, will still run
from left to right, since it has inherent directionality and the dir
attribute shall not override that. Well, I'm not so sure of what
browsers actually do (they are known to take the dir attribute as
overriding inherent directionality in some cases), and since this is
presentational only, I would try to use CSS instead:

ul { direction: rtl; }
li { direction: ltr; }

The bad news is that on IE 6, this creates a presentation that has _no_
bullets. A strange bug. Using just the first rule creates the same
effect as the HTML attribute.

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2481
by: Tyler | last post by:
When I am making an unordered list (using bullets), is there a way to make the bullets small pictures that I can choose. <ul type=??> <li></li> </ul>
1
6806
by: Johannes Theile | last post by:
Hi, is it possible to show the bullets in a list (ul), although it is possitioned as an inline element? Greetings, Johannes
2
2775
by: Wiz | last post by:
Greetings the group! I see from a few previous postings that I am not the only person having a problem with hidden list item bullets. This question applies to both IE 6, current version, and Firefox 0.8 browsers, which I am using for testing. I have a design in progress that uses a relatively positioned, left-floated, 122px wide navbar, with the main content padded to the right by 10px, wrapping under after it exceeds the height of the...
3
2283
by: Jordan Peterson | last post by:
When using {list-style: none} to hide the bullets in a <ul>, the bullets disappear but they are still accounted-for when positioning text. Specifically, I have: <div style='text-align: center'> <ul style='list-style: none> <li>...</li> <li>...</li> <li>...</li>
33
3919
by: Jim Cobban | last post by:
I cannot get Netscape 4.79 to properly display the ordered list in the following fragment. <P>Get a specific portion of the date. Depending upon the value of index: <ol start=0> <li>complete value, usually as a <code>String</code>, or if an integral value as an <code>Integer</code>. <li>year as an <code>Integer</code> <li>month number as an <code>Integer</code>
3
1858
by: dingbat | last post by:
A relatively common piece of CSS is to style a list to be displayed in-line: li { display: inline; } However this also removes any bullets from the <li>s, as they're no longer "list items". Is there are way to style a list to be both in-line, _and_ with bullets on each item?
210
10578
by: Christoph Zwerschke | last post by:
This is probably a FAQ, but I dare to ask it nevertheless since I haven't found a satisfying answer yet: Why isn't there an "ordered dictionary" class at least in the standard list? Time and again I am missing that feature. Maybe there is something wrong with my programming style, but I rather think it is generally useful. I fully agree with the following posting where somebody complains why so very basic and useful things are not part...
8
1676
by: Fuzzyman | last post by:
Sorry for this hurried message - I've done a new implementation of out ordered dict. This comes out of the discussion on this newsgroup (see blog entry for link to archive of discussion). See the latest blog entry to get at it : http://www.voidspace.org.uk/python/weblog/index.shtml Criticism solicited (honestly) :-) We (Nicola Larosa and I) haven't yet made any optimisations - but there
2
2318
by: Max58kl | last post by:
Hi I am trying to create a bulletted list that has a colored background. The follow css code successfully applies the background color to the list items, but for some reason does not apply the background color to the bullets. The disk.gif image is a 10px by 10px bullet graphic. <style type="text/css"> #menu ul{ font-family: Arial, Helvetica, sans-serif;
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10361
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,...
0
10103
tracyyun
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...
0
9179
agi2029
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...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
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();...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
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
3
3006
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.