Skip navigation
jennbrown8
Currently Being Moderated

Trying to add a caption in a grey box to my image. HELP!

May 21, 2013 1:59 PM

Tags: #cs5 #image

I'm not sure what is missing from my code:

 

</a>
<img src="_images/MU-shrubs.jpg" width="100%" /><div id="summer" class="nivo-html-caption">Happy Summer!</div></a>

 
Replies
  • Currently Being Moderated
    May 21, 2013 2:09 PM   in reply to jennbrown8

    You are missing the title attribute in your image...

     

    <img src="_images/MU-shrubs.jpg" width="100%" title="Happy Summer!" />

     

    Or you can set the title attribute as the Id of an element so it adds in any html...

     

    <img src="_images/MU-shrubs.jpg" width="100%" title="#summer" /><div id="summer" class="nivo-html-caption">Happy Summer!</div>

     

    EDIT: Both of the above should look and act the same though.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2013 4:12 PM   in reply to jennbrown8

    What is it you want this code to do?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points