我的目标是拥有这样的东西:
Link1 This text is a bit long <bullet point> Link2 This text is real short
我想让元素符号点居中,而不是整行代码本身居中。这是我当前的代码:
<center>
<div id="links">
<a href ="post.php">Post to Classifieds</a>
<span style="padding-left: 20px; padding-right: 20px;">●</span>
<a href="contact.php">Contact</a>
</div>
</center>
Post to Classifieds ● Contact
目前在“分类”中将文本对齐在中间的“s”周围,而不是我需要的,即元素符号居中。有人知道解决方案吗?
最佳答案
你的意思是说这样的话? http://jsfiddle.net/uday99/kFGmC/1/
关于HTML/CSS : Centering a certain point instead an entire line of code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9451198/