0

I am having a problem with my image alignment. I want my image to align with inline elements in a specific way.

This is what I have now:

                ######################
                #                    #
                #                    #
                #       image        #
                #                    #
                #                    #
inline elements ######################

but I want:

inline elements ######################
                #                    #
                #                    #
                #       image        #
                #                    #
                #                    #
                ######################

Is there anyway to do with with CSS?

Hawkeye
  • 377
  • 1
  • 3
  • 14

3 Answers3

1

Just assign vertical-align: top to the image's CSS.

http://codepen.io/anon/pen/zBKpmJ

Johannes
  • 64,305
  • 18
  • 73
  • 130
0

Use below CSS for image - position:absolute

    img{
  position:absolute;
   }

codepen-http://codepen.io/pen/

Naga Sai A
  • 10,771
  • 1
  • 21
  • 40
0

css float:left on the inline element. See fiddle https://jsfiddle.net/djLqudmt/2/

grateful
  • 1,128
  • 13
  • 25