aligning the picture

Discussion in 'Web Design and Development' started by vidhyaa, Jun 21, 2016.

  1. vidhyaa macrumors newbie

    Joined:
    Jun 21, 2016
    #1
    I need to align picture so that one may be higher or lower than the other. How can I achieve it?
     
  2. Flood123 macrumors 6502a

    Flood123

    Joined:
    Mar 28, 2009
    Location:
    Living Stateside
    #2
    Your question isn't super clear. At least to me. Do you have a screenshot of the design of desired result?
     
  3. macyboxy macrumors newbie

    macyboxy

    Joined:
    Jun 27, 2016
    Location:
    Manchester
    #3
    I think that you want to align it vertically? You can try it in that way:

    <div id="block">
    <img src="firstimg.jpg">
    <img src="secondimg.jpg">
    </div>

    and in CSS:
    #block {
    line-height: 100px;
    }

    #block img {
    vertical-align: middle;
    }

    Hope it's what you needed :)
     
  4. 960design macrumors 68000

    Joined:
    Apr 17, 2012
    Location:
    Destin, FL
    #4
    Please post your code in something like this ( then send us the link ) so that we can get a better idea of how to help:
    https://jsfiddle.net/
     
  5. johnmathew11 macrumors newbie

    Joined:
    Jun 29, 2016
    #5
    Please give the complete picture of your problem so i can give you the code to fix your issue.
     
  6. iPaintCode macrumors regular

    iPaintCode

    Joined:
    Jun 24, 2012
    Location:
    Metro Detroit
    #6

Share This Page