Home >Web Front-end >HTML Tutorial >video centered in paragraph_html/css_WEB-ITnose

video centered in paragraph_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:533610browse

video centered video centered

In order to indent the first line of text in the paragraph,
p{
text-indent:2em;
} has been defined,
but I don’t want to let it The video in

is also indented, so that the video is centered in the paragraph.

Can this problem be solved in css?

Reply to discussion (solution)


Can I add a
?

Use dynamic judgment to set the text-indent value of video and paragraph to 0

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