Home  >  Article  >  Web Front-end  >  Use CSS to position text at the bottom of div_html/css_WEB-ITnose

Use CSS to position text at the bottom of div_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:28:031291browse

There is no parameter for css text layout to be aligned with the bottom of the container. A good method currently used is also better. It is to use the position attribute to solve the problem. Look at the code below. It is also easy to use the relative and absolute positioning functions of position. It's been implemented. The text is aligned close to the bottom of the div, and the distance can be accurate to pixels. You can adjust it yourself. Isn't it great?

"http://www.w3.org/TR/html4/loose.dtd">



Untitled Document





aadsad





Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn