Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical-align -> what does it do? 1

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
what elements can you use vertical-align on.

I have only found applying it to images seems to work.

is it possible to verticaly align text within a <p> or <div> etc... or is padding/margin the only tool for this job?

thanks,

1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
thanks,

however i applied it to an anchor and it didn't seem to center them verticaly, infact it just seems to stop the text-decoration from working?

why is this?





"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
oh well i've found that if i make the #id a { line-height: } the same height as the containing #id div it vertical aligns the hyperlinks which was the result I was looking for.

:)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top