?
Solved

Bootstrap image static caption

Posted on 2014-10-17
2
Medium Priority
?
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 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