Home >Web Front-end >HTML Tutorial >There is a marquee tag in a div, and there is scrolling text in the marquee. How can I make the text vertically centered in the div and scroll from right to left? _html/css_WEB-ITnose

There is a marquee tag in a div, and there is scrolling text in the marquee. How can I make the text vertically centered in the div and scroll from right to left? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:52:543703browse

Why can’t my code below be displayed so that the text can be vertically centered in the div and scrolled from right to left?


Test text


Please help, thank you! Not enough points for extra points!

Supplement: Can the height of the div be changed to 100% of the entire browser? I don't want to use pixels, but after changing it to 100%, the height of the div is determined by the content, and I can't control the height of the div.


Reply to discussion (solution)


Test text
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