Solved

add margin to • ?

Posted on 2014-11-16
3
135 Views
Last Modified: 2014-11-16
Hi,

Rather than using an unordered list, I use a bullet like this:  

•

in front of some sentences to make them look like a list (there's a good reason I do this, but I'll save you the full explanation).

My question... is there a way to put something in my .css file that will give "•" a margin to move it slightly to the right?

For example, something like

• {margin-left:10px}

I'm assuming that wouldn't work since • isn't an html element...
0
Comment
Question by:St_Aug_Beach_Bum
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40446287
No, you need to make a class for it like this.
.bull {margin-left:10px;}

Open in new window

And use it like this:
<span class="bull">&bull;</span>

Open in new window

0
 

Author Closing Comment

by:St_Aug_Beach_Bum
ID: 40446337
Done, thank you,

Chris
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40446365
You're welcome, glad to help.
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question