-2

I've got the following jsfiddle which illustrates a problem I'm currently facing. I have got an image tag, and want the text to be vertically aligned along the center of the image. I have tried using padding-bottom but to no avail.

How can I achieve this? Essentially all I need is to move the text up. I have also tried using a label and span, but the problem was there too.

because
  • 1
  • 1

3 Answers3

0

Add Extra css

.draggable img{
    float:left;
    margin-top:3px;
    padding-right:5px
}

DEMO

Sudharsan S
  • 15,336
  • 3
  • 31
  • 49
0

is this whata re you to accomplish ?

i added this class :

.draggable img{
    float:left;
    padding-right:5px;
}
Youness
  • 1,468
  • 1
  • 9
  • 19
0

Try this:

You need to put "Text" in span tag suppose

<span class="user_text">Text Box</span>

And Css:

.user_text { 
  vertical-align:top;
}
urbz
  • 2,663
  • 1
  • 19
  • 29
Sandeep Pal
  • 2,067
  • 1
  • 16
  • 14