![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
lists { margin:2em 0 0 2em; } .lists ul { margin:0; padding:0; } .lists li { padding: 0 0 0.5em 1em; list-style: url(assets/images/19dot1a.gif) circle outside; } |
#3
| |||
| |||
|
|
Hi, I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Is there any way I can set the bullets to be on the right: |
#4
| |||
| |||
|
|
On 17 Aug 2006 10:39:23 -0700, ashkaan57 (AT) hotmail (DOT) com wrote: Hi, I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Is there any way I can set the bullets to be on the right: Sorry, did not read it properly, I think you would have to use backroung images on <li> or on <a>, ul { float: right; background: url(bullet.gif) right; } li { background: url(bullet.gif) right; } -- buy, bought, bye |
#5
| |||
| |||
|
|
Nije Nego wrote: On 17 Aug 2006 10:39:23 -0700, ashkaan57 (AT) hotmail (DOT) com wrote: Hi, I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Is there any way I can set the bullets to be on the right: Sorry, did not read it properly, I think you would have to use backroung images on <li> or on <a>, ul { float: right; background: url(bullet.gif) right; } li { background: url(bullet.gif) right; } -- buy, bought, bye Thanks Nije. If I use the style you provided, it puts the bullet's image as the background of everything between <ul> and </ul> or <li and </li>. I tried the float:right and added "right" to the "list-style", but didn't work. |
#6
| |||
| |||
|
|
I tried the float:right and added "right" to the "list-style", but didn't work. |
#7
| |||
| |||
|
|
I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. |
|
Is there any way I can set the bullets to be on the right: |
|
.lists { margin:2em 0 0 2em; } .lists ul { margin:0; padding:0; } .lists li { padding: 0 0 0.5em 1em; list-style: url(assets/images/19dot1a.gif) circle outside; } |
#8
| |||
| |||
|
|
ashkaan57 (AT) hotmail (DOT) com <ashkaan57 (AT) hotmail (DOT) com> scripsit: I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Bullets are on the left by default. The inherent directionality of text characters does not change that. You should have specified the URL so that we could see what you have actually done. It seems that you have not specified the writing direction, so using dir="rtl" in the <body> element is advisable. You could use CSS too, body { direction: rtl; } but the writing direction is too important to be handled in CSS; it's part of the writing system, not a casual rendering suggestion. Is there any way I can set the bullets to be on the right: body dir="rtl"> will do that. .lists { margin:2em 0 0 2em; } .lists ul { margin:0; padding:0; } .lists li { padding: 0 0 0.5em 1em; list-style: url(assets/images/19dot1a.gif) circle outside; } What is "lists"? CSS code snippets are rather meaningless without a document they relate to. If you have wrapped your lists inside <div class="lists">...</div>, the margin settings are not adequate for right-to-left writing. The right margin or padding of a <ul> should be positive (and about 1.5em or larger) so that there is room for the bullets. -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ |
#9
| |||
| |||
|
|
Jukka K. Korpela wrote: - - You should have specified the URL so that we could see what you have actually done. |
|
No, I don;t use <div>, I use to style <ul>. What I wanted was a two level <ul> and in works in ENglish version. |
#10
| |||
| |||
|
|
ashkaan57 (AT) hotmail (DOT) com <ashkaan57 (AT) hotmail (DOT) com> scripsit: Jukka K. Korpela wrote: - - You should have specified the URL so that we could see what you have actually done. You seem to have missed that sentence, despite quoting it. Comprehensive quoting often indicates lack of comprehensive reading. No, I don;t use <div>, I use to style <ul>. What I wanted was a two level <ul> and in works in ENglish version. But fails to work in an unspecified way in an unspecified version. Well, you have probably made some mistake, either in coding or interpreting things. Did you even try my suggestion? The one you quoted, I mean. -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |