Sign in to follow this  
Followers 0
newcoder1010

How to write image caption

1 post in this topic

Hi,

 

I have this code which writes caption under the image.

<figure><img src="/sites/default/files/we-md.jpeg" alt="local house -buyers - sell your house"><figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption></figure>

However, if I write the image class then caption is no longer under the image. Caption simply goes to next paragraph. How can I keep the caption under that image while keeping the image classes?

<figure><img class="block_img img-responsive" src="/sites/default/files/we-md.jpeg" alt="local house -buyers - sell your house"><figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption></figure>

Thanks.

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  
Followers 0