Jump to content

Adding an image to style definitions?


sly_foxx68

Recommended Posts

Hi again everyone! Quick question for you all please, atleast I hope it will be quick! What I would like to do is use an image in a style definition. I am going to be using this image many times through out my site and it would be great if I could make it part of a layer or div that I could call when needed. Thanks again everyone.

Link to comment
Share on other sites

not really sure what you mean exactly... you can set images through styles with the background-image declairation or if you use the content declairation. I recommend you look these two up and see if they would work for you, if not then I don't think you can.

Link to comment
Share on other sites

There is a CSS3 feature for this, but it only works in Opera so far... So you could do like many others and just use it as a background-image. However this is not the prefered method, especilly if the image is a link to the home page, because you won't be able to set an alternate text to non-image clients.

Link to comment
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
×
×
  • Create New...