0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Having 2 classes for an image...'demo' and 'caption'

    • 's Avatar

    Having 2 classes for an image...'demo' and 'caption'

    Posted 16 years 6 months ago
    • Hey all,

      I'm not sure how this can be done. I'd love to have the demo class with my Replicant2 theme along with a caption class. When I add the caption, I loose the border...

      I'm going to check into this more...

      Thanks in advance.

      tm
      ____________________

      Later...

      Ok, after checking things out here:

      www.w3.org/TR/html4/struct/global.html#adef-class

      In order to get both the border and also some other classes, like caption...insert this:

      <img src="/images/stories/image.jpg" title="Image Title for Caption" class="caption demo"&nbsp; />

      Basically if you are adding multiple classes, just separate them by a space.

      Hope this helps others...

      tm
    • Last Edit: 16 years 6 months ago by Peter Osipof.
    • damo's Avatar
    • damo
    • Elite Rocketeer
    • Posts: 2142
    • Thanks: 0

    Re: Having 2 classes for an image...'demo' and 'caption'

    Posted 16 years 6 months ago
    • thanks for this tim. however i have just spent the last 10 minutes getting you your answer, only to see you've added it ;)

      handy to know though
    • www.c3p0.se - sweden

Time to create page: 0.080 seconds