Dear Friends, I am pretty much new in CSS platform. Can anybody please help me regarding putting text vertically and horizontally center in a row ? by using DIV Waiting for replies. Regards John
u have to give style tag to ur div ,like <div style=""> and when u give space after word in div tag u wil see a list that consists of lots of tags, select style tag,so after adding style tag press enter after this give space and u wil find other sub elements in style tag, press v to select vertical-align, press ; and give spave and press t to select text-align and complete with ; look like this<div style="vertical-align:middle; text-align:center;padding-top:125px; height:125px"></div> give padding to get centered text frm top, but u have to decrease height according to padding. in above tag ur exact height is 250px;
See centering text vertically in a container using css. @mahendra rajeshirke: Please do not suggest poor practices such as inline style attributes. cheers, gary