Solved

CSS Background Special Character

Posted on 2013-01-31
5
441 Views
Last Modified: 2013-02-15
Ho can you use a special html character as a background image?  I want to use &#9660 on the left hand side of my menu choices then on the hover state us &#9658.

How do I do that?
0
Comment
Question by:rgranlund
5 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 38841221
Something like this:
.myClass{content: "\9658";}

Open in new window

0
 
LVL 7

Author Comment

by:rgranlund
ID: 38841797
How do I get a bottom border image to work?
0
 
LVL 33

Expert Comment

by:Slick812
ID: 38842038
the CSS for having a "Background" to an html element (a DIV, a MENU, or other Block), is have it as a Color -
background:#000030;

or an image -

background: url(images3/bluswl.gif);

but you can not write "Text" to the background, because it is NOT the portion of html that gets the text content.

There may be ways to help you do what you ask, but we will need to know more about the kind of Menu you are using,
not all web page menus are the same. Can you show us some of the html page code for your menu, or about what menu you use? ?  You do not say enough in your question about what you have as menu, or anything about the "bottom border image" and how it works?

Have you considers making two Images for your background, one with the &#9660, and another with the &#9658    ? ?
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 38843800
Rather than try to put characters in the background, make a google search for "CSS image sprites" and see what you find.  I'll bet it will do the job for you very well!
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38844909
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form with Modals 16 44
Problem sending file attachments 8 23
send keys not working in vba 7 41
str_replace not working in php script 4 11
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now