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

video centered in paragraph_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:53
Original
3622 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template