【发布时间】:2013-09-15 17:43:03
【问题描述】:
我在试图解决问题时完全被难住了..
如下图所示,我在左侧有一个图像,在右侧有环绕图像的文本,我在这个文本中还有一个列表 (ul),我想要的是将项目符号与其余部分对齐在它上面的文本而不是在文本之外,同时还保持它环绕图像和单个列表项中的行相互对齐而不是创建悬挂段落..
这可能吗?
包含下面的 HTML...
<div class="entry-content">
<img src="image.jpg" alt="Pinterest" />
<p>Haven’t worked out how Pinterest could benefit you? An image sharing site that allows users to "pin" what they find onto a virtual pin board for others to enjoy, last year it reached the 10 million monthly visitors mark, the fastest of any standalone site to do so</p>
<ul>
<li>Integration: By connecting Pinterest with your website and other social media platforms you can publish your findings in a variety of ways.</li>
<li>Collaboration: Pinterest can allow you to share ideas within your business or with clients. Why not invite people to collaborate with you on boards?</li>
<li>Sharing: Position yourself as a valuable resource. Create a board for your niche subject and lead the way with new ideas in your industry.</li>
<li>Information: Data is key to the growth and development of your business. Keep an eye on what’s being pinned, how often and by how many people.</li>
<li>Enjoyment: Pinterest gives you the opportunity to represent your company in a way it’s never usually seen. Enjoy the challenge of showing your company in a new light and build your community by pinning the inspiration of other users.</li>
</ul>
<p>As a design and digital agency Pinterest is right up our street. We’ve started using it to collage all the wonderful things we enjoy, including ideas for our studio, general food for thought and to help us find inspiration for our journal.</p>
<p>How are you using or planning to use Pinterest?</p></div>
CSS 也包括在内..
.blog-post img {width:auto; float:left; margin-bottom:10px; margin-right:40px;}
.blog-post p {margin-bottom:26px;}
.blog-post .descr ul {list-style:none; margin-left:0; padding-left:1em; text-indent:-1em;}
下面我已经包含了我想要达到的目标的模型。
【问题讨论】:
-
你还想要要点吗?
-
好吧,子弹需要在那里.. 还有什么其他选择?
标签: css alignment html-lists