User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 397,809 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,512 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2502 | Replies: 5
Reply
Join Date: Oct 2006
Posts: 24
Reputation: vexhawk is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
vexhawk vexhawk is offline Offline
Newbie Poster

Special Character Bullets

  #1  
Dec 7th, 2006
Whats the best way to use a special character as a bullet for lists in CSS.

I'm trying to use "ยป"?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Special Character Bullets

  #2  
Dec 7th, 2006
li{
    content: "\00BB \0020";
}

Won't work in IE though. If you want it to be cross-browser use an image instead.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Oct 2006
Posts: 24
Reputation: vexhawk is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
vexhawk vexhawk is offline Offline
Newbie Poster

Re: Special Character Bullets

  #3  
Dec 7th, 2006
thanks. i tried doing that to an inline "li" didn't seem to work.
Reply With Quote  
Join Date: Oct 2006
Posts: 24
Reputation: vexhawk is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
vexhawk vexhawk is offline Offline
Newbie Poster

Re: Special Character Bullets

  #4  
Dec 8th, 2006
Hmm, how would it work in inline tags?

I have this:

<li style="content: '\00BB \0020';">

it doesn't seem to work.
Reply With Quote  
Join Date: Apr 2008
Posts: 1
Reputation: tracyselena is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tracyselena tracyselena is offline Offline
Newbie Poster

Re: Special Character Bullets

  #5  
Apr 11th, 2008
an earlier post mentions that for IE to use an image...what would the syntax be for that?
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: Special Character Bullets

  #6  
Apr 11th, 2008
Two methods I can think of.
You have the image property for Lists, and you have the background-image proprerty also.

li
{
list-style-image: url(yourimage.ext);
}

Or

li
{
list-style: none;
background-image : url(yourimage.ext);
}

Note, with the background-image method, you may need to apply a bit of padding to the list.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC