0

Screenshot

Please refer to the attached screenshot. How to position the text "Arunraj" to the top of div(blue box). Now it automatically goes down. Here is my code:

  <div>
    <span class="profile-pic"></span>
    <span>
      <div>
        <h3>Arunraj</h3>
        <p>Lorem ipsum dolor simet</p>
      </div>
    </span>
  </div>
Arun Raj
  • 1
  • 1
  • Div elements inside span elements is [not valid HTML](http://stackoverflow.com/questions/11314668/what-elements-can-a-span-tag-contain-in-html5). – isherwood Feb 13 '17 at 18:27
  • Please read [ask]. Key phrases: "Search, and research" and "Explain ... any difficulties that have prevented you from solving it yourself". – Heretic Monkey Feb 13 '17 at 18:27
  • CSS: h3 { margin-top: 0; } – Liren Feb 13 '17 at 18:28
  • @Liren, please provide a properly-formatted answer below if you have one. – isherwood Feb 13 '17 at 18:29
  • Possible duplicate of [Vertical alignment of elements in a div](http://stackoverflow.com/questions/79461/vertical-alignment-of-elements-in-a-div) – isherwood Feb 13 '17 at 18:31
  • @MikeMcCaughan sorry..I dont how to search with a screenshot and explain a search engine this particular situation. my bad – Arun Raj Feb 13 '17 at 18:33
  • your `

    ` tag closes as an `

    ` tag (i.e. it DOESN'T close)...

    – Johannes Feb 13 '17 at 18:34
  • The "Explain...any difficulties" part is also relevant... We expect people to have tried to fix the problem themselves before asking on SO. – Heretic Monkey Feb 13 '17 at 18:38

0 Answers0