View Single Post
Old 06-15-2014, 01:59 PM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by odedta View Post
Hello,

I want to style a list just like the one in Microsoft Word. (View attached)

I used the following CSS code to style it:
Code:
.List-Style2
{
	list-style-type:none;
}

.List-Paragraph2:before {
	content: "\0x0076";
}
This doesn't work, I tried all sorts of codes but nothing seems to work, I prefer to avoid image if there is a working code for this because of scalability.

Do I have to embed a font to get this symbol?
Try this, maybe it works:

1. In your .css stylesheet:

Code:
.List-Style2 {
    display: list-item;
    margin-left: 2em;
    list-style-type: none;
}

.List-Style2:before {
    margin-left: -1.1em;
    content: "❖ ";
}
2. In your .xhtml file:

Code:
<p class="List-Style2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc.</p>
Of course, since we are using the :before pseudo-element, we are going to have some "issues" under ADE.

Regards
Rubén
RbnJrg is offline   Reply With Quote