How to write vertical lines in HTML

藏色散人
Release: 2023-01-03 09:31:27
Original
14060 people have browsed it

How to write vertical lines in HTML: First create an HTML sample file; then create the p tag content in the body; finally use the "border-left:3px solid #369;" attribute to achieve the vertical line effect. .

How to write vertical lines in HTML

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

html: add a vertical bar in the div

##border-left: 3px solid #369;The effect is as follows

How to write vertical lines in HTMLThe code is as follows

css

.new-right{ float: right; } .title-top{ height: 28px; text-align: left; border-bottom: 1px solid #ccc; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); } .title-top h3{ padding-left: 10px; border-left: 3px solid #369; color: #333; } .title-top span{ color: #ccc; font: italic 16px/18px Palatino Linotype,simsun; padding-left: 10px; letter-spacing: 1px; } .news-ul{ padding-left:20px; }
Copy after login

Recommended learning: "

HTML Video Tutorial"

The above is the detailed content of How to write vertical lines in HTML. For more information, please follow other related articles on the PHP Chinese website!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!