black; height: 1px; width: 630; vertical-align:middle"/>
I am a newbie at this.
There is a dotted line here. I want it to be in the middle of the page, but it has no effect...
Reply to discussion (solution)
Actually I want to have a table above and below the dotted line...
to be symmetrical...
But the dotted line is never in the middle of the page
You can Write a
attribute as the width you want, the height is 1; the background color is the color you want, margin:0 auto
You can write a attribute as you want The width and height are 1; the background color is the color you want, margin:0 auto I am a novice... Can you write it out and see if you can! I don’t quite understand
css
div { padding:10px 0; }
#div1 { boder -bottom:1px dashed black; }
If you want to achieve vertical centering in the div, please refer to this http://bbs.csdn.net/topics/390246536
About For this kind of centering, please click: http://www.cnblogs.com/yjzhu/archive/2012/11/19/2773209.html
Quoting the reply from sincerity_love on the 2nd floor: You can write a I am a novice... Can you write it out? I don’t quite understand
I made a mistake last time, it should be DIV, because span is an inline element and there is no way to set the width and height unless display is set;
Try this method and see
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