html - Vertical Align top two divs not working -


itemprop = "text">

Can someone help me align my two devices? what did I do wrong? As my devices I have two inline blocks and I am trying to align them on one side of the element at the highest point.

& lt; Body & gt; & Lt; Ul id = "navbar" & gt; & Lt; Li & gt; & Lt; A href = "# Skill" & gt; Skills & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#work" & gt; Work & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# contact" & gt; Contact & lt; / A & gt; & Lt; Li & gt; & Lt; / Ul & gt; & Lt; Div id = "intro" & gt; & Lt; P & gt; Hello & lt; / P & gt; & Lt; / Div & gt;

CSS:

  #navbar {display: inline-block; Margin-left: 25%; List-style-type: none; Vertical-align: top; Width: 12%; } #intro {display: inline-block; Width: 40%; Vertical-align: top; }  itemprop = "text"> 

add margin top: 0 or any other text after


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -