newcoder1010 Posted March 20, 2017 Share Posted March 20, 2017 Hello, I have this html to place the text under the image. Now, I see the text to the right of the image. I am not sure how I can place the text under the image in difference devices? <figure class="figure"><img src="/sites/default/files/sell-your-house.jpeg" alt="local house -buyers - sell your house" /> <figcaption class="figure-caption">Sell your house fast. <a href="contact-us" title="Contact us">Contact us</a> today!</figcaption></figure> CSS I had: figure { margin: 0; float: left; padding: 15px 15px 15px 0; } Link to comment Share on other sites More sharing options...
Ingolme Posted March 20, 2017 Share Posted March 20, 2017 Make sure the figcaption element is a block and that there is no code floating the img element. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now