Div Vertical Align Center Position 01

In the previous sample we discussed about horizontal Div center position relative to the outer boundary of Div tag using CSS margin property and CSS width property. There we used "margin: 0px auto;" to align the Div position at the center horizonally. You can use "margin: 40px auto;" to set the vertical position 40px away from top and 40px away from bottom of the outer Div tag boundary. It will look like the sample below:

div center position vertically

text here text here text here text here text here
text here text here text here text here text here
text here text here text here text here text here