Using an image in a CSS

T

Todd Cary

I have a JavaScript vertical menu that is controlled by a CSS.
Currently, menu items that have sub-menus are indicated by using the
border and I would like to use an image.

Can that be done and if so, how would I do it.

The XHTML code is

<li><a class='myBoxLblA' href=''>lbl-1-1</a>
<ul class='myBox'>
<li><a href=''>item 1-1-1</a></li>
<li><a href=''>item 1-1-2</a></li>
</ul> <!-- end box-1-1 -->
</li> <!-- end lbl-1-1 -->

The CSS entry for myBoxLbl is

/* Box label */
li.xmBoxLbl {
color:#ffffff; background:transparent;
border-right:1px solid #330;
}


Todd
 
M

Mitja

I have a JavaScript vertical menu that is controlled by a CSS.
Currently, menu items that have sub-menus are indicated by using the
border and I would like to use an image.
The CSS entry for myBoxLbl is

/* Box label */
li.xmBoxLbl {
color:#ffffff; background:transparent;
border-right:1px solid #330;
}

Hint: Have a look at what values "background" can take.
 
A

-=# Amos E Wolfe #=-

I have a JavaScript vertical menu that is controlled by a CSS. Currently,
menu items that have sub-menus are indicated by using the border and I
would like to use an image.

Can that be done and if so, how would I do it.

{
background-image: url(filename.ext);
}

-=# Amos E Wolfe #=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top