Jump to content
IElite

Styling a Panel with a background image

Recommended Posts

What am i doing wrong?

I have added my image to the resources.

I have created a style class (pnlHeader) for the panel

 

.pnlHeader {
cursor: inherited;
border: 5px solid #7c7a77;
resize: none;
font-size: 12px;
border-radius: 6px;
background-color: #616A2E;
background-image: url('res/nav_bg_leaves.gif') no-repeat 0 100%;
}

The background color is working, but the background image is not

 

I have tried every variation of slashes (\ / ) and quotes  (", ',)

 

"res/nav_bg_leaves.gif"

'res\nav_bg_leaves.gif'

"res\nav_bg_leaves.gif"

 

 

 

 

Share this post


Link to post
Share on other sites

ahhh, interesting that they dont use the standard CSS property background-image  like they do many of the others

 

anyways, yes, that works, thank you

background: url('nav_bg_leaves.gif') no-repeat 100% 100%;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×