Thursday 15 May 2014

css - Align a sub divs text with parent div -


I am currently working on a website, it is very easy, but in my first one I am creating the header now and Can not get your "Big Header" text to align with the text of your "header".

For my website, see.

Aligning with dummy code is about home blog donation , but it is down.

My Style CSS

There are two "ways" in my style sheet below ...

  #header {top: 0px; Left: 50%; Width: 795px; Height: 100px; Box-Size: Boundary Box; Margin-left: -397.5px; Text-align: ok, background: white; Padding-top: 35px; Padding-bottom: 35px; Padding-right: 10px; Font-size: 30px; Word-span: 12px; Change Text: Lowercase; Status: fixed; } #Bigheaders {Padding-left: 10px; Font-size: 50px; Word-spacing: 0px; Text-align: left; Change the text: none; Status: fixed; }   

and my HTML is here ...

  & lt; Div id = "header" & gt; & Lt; Div id = "bigheader" & gt; & Lt; H & gt; Dummy Code & lt; / H & gt; & Lt; / Div & gt; & Lt; One class = "current" href = "/" & gt; Home & lt; / A & gt; & Lt; A href = ". About /" & gt; About & lt; / A & gt; & Lt; A href = ". / Projects" & gt; Projects & lt; / A & gt; & Lt; A href = "./blog" & gt; Blogs & lt; / A & gt; & Lt; A href = "./ donate" & gt; Donate & lt; / A & gt; & Lt; / A & gt; & Lt; / Div & gt; As you used fixed position,  

You can only #birdheaders < / Code> and top value.

  #bigheader {// Current CSS comes here top: 30px; }    

No comments:

Post a Comment