Jump to content
sly_foxx68

Adding an image to style definitions?

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...