Solved

Bootstrap image static caption

Posted on 2014-10-17
2
202 Views
Last Modified: 2014-10-20
Hello Experts,

Here is a the full code below.

http://codepen.io/exceptional/pen/qAmIE

This is a simple two column (Bootstrap) responsive layout.
I use the "push" and "pull" classes on each column in order to decrease the gap between the two columns.

What I am trying to achieve is:

Absolute position the caption (span) to the bottom of the image while the image is responsive and also the caption with it. I think it is fairly simple but for some reason I am not able to get it right.

Any help would be appreciated!
0
Comment
Question by:Refael
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40387694
http://codepen.io/anon/pen/fxmlb

Wrap your second image in a cover-img-wrap class div
Apply the max-width to the images div container and not the image

To the img add
    width:100%;

To the anchor tag add
    display:block;

To .textCenter add
    position:absolute;
    bottom:0;

Remove .textCenter from the .row div
0
 

Author Closing Comment

by:Refael
ID: 40393003
Always, Thank you Gary :-) A little bit here and there and i got it just perfect!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now