0

I'm using a template with Bootstrap.

The following code:

<div class="row mix-grid thumbnails wrapper white" id="pictures_placeholder">
            <div class="col-md-3 col-sm-4 mix ">
                <div class="mix-inner">
                    <img class="img-responsive" src="../../../assets/admin/pages/media/works/img1.jpg"
                         alt="">

                    <div class="mix-details picture-bottom-label">
                        <div class="row">
                            <div class="col-md-12 col-xs-12">
                                <div class="col-md-4 col-xs-3">
                                    <img src="../../../assets/admin/pages/media/profile/profile_user.jpg"
                                         class="img-responsive img-circle profile-pic"
                                         alt=""
                                            />
                                </div>
                                <div class="col-md-8 col-xs-8 text-left user-name">Asaf Nevo</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

does this:

enter image description here

How can I make the name (Asaf Nevo) to be entered to the image ?

Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154

3 Answers3

0

try adding this to CSS:

div.user-name{height:92px;line-height:92px;}

hope that helps.

geevee
  • 5,411
  • 5
  • 30
  • 48
0

Put the name in the same div as the image. Make both inline.

<img src="../../../assets/admin/pages/media/profile/profile_user.jpg"
    class="img-responsive img-circle profile-pic" alt="" />Asav Nevo

Now play with the CSS property vertical-align. Something like vertical-align: middle could work and yes, this property should be applied to the surrounding div if not mistaken, potentially also to the inline content itself. I cannot try it right now.

ReneS
  • 3,535
  • 2
  • 26
  • 35
  • Bootstrap cannot do everything, check these out: http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 http://stackoverflow.com/questions/25538732/bootstrap-how-to-get-text-to-vertical-align-in-a-div-container http://stackoverflow.com/questions/18192114/how-to-use-vertical-align-in-bootstrap – ReneS Mar 15 '15 at 14:18
0

Add this to the css:

.user-name {
  margin-top:50%;
}  
jenzz
  • 7,239
  • 6
  • 49
  • 69
Sujay sreedhar
  • 3,498
  • 2
  • 21
  • 28