Jump to content
Sign in to follow this  
jrhalsall

Different css for different boxes?

Recommended Posts

jrhalsall

I have just put some custom css on my boxes so that they each have a background image. This works fine. I was just wondering how I can have different css styles on each box so that each one could have a different background image.... Is this possible? I don't see how I can select a style from the css when adding a new box...

Share this post


Link to post
Share on other sites
antonella
Hi, Yes, you style individual boxes by finding their id. The best way to do this is to use Firebug or something where you can inspect the element or you can look at the html source. I can give you a few examples here from my site. You would just have to find your box id and add your specific CSS coding to add the background image: #fbox_412 { width: 520px; margin-right: 60px; } #fbox_412 h3 { display: none; } #fbox_412 p { line-height: 200%; } #fbox_413 { width: 360px; margin-top: 10px; }

Share this post


Link to post
Share on other sites
jrhalsall
Thanks for this - I ended up finding this out by looking using firefox developer tools! Realising how much you can do with css now :-)

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

Sign in to follow this  

×