【发布时间】:2011-10-25 07:54:41
【问题描述】:
我需要制作三个等高的列,其中包含不同数量的圆角内容。角落需要一个 8px 的边框半径。如果可能的话,我宁愿用纯 CSS 来完成这个。
现在我的 html 看起来像这样:
<div class="col-w">
<div class="col-h col-1">
<h2>About Us</h2>
<p>Founded in 1995 in Atlanta, Georgia, The Creative Circus is an accredited, two-year, portfolio-building, educational program for the creative side of the Advertising, Interactive Development, Design and Photography industries. Located in an energetic, converted warehouse that feels more like an agency, design firm or studio than a traditional school, future creatives build portfolios that help them land the best jobs in the field.</p>
<p><a href="http://www.creativecircus.edu">Find out more about us.</a></p>
</div>
<div class="col-h col-2">
<h2>Admissions</h2>
<p>The Creative Circus is committed to seeking out and enrolling applicants of high standard. Our school follows a selective admissions process which includes a required admissions interview and portfolio submission. Admission is based on your commitment and dedication to your field of interest as determined by an admissions interview. This selection process allows us to provide a unique creative learning environment filled with the “best-prepared, most avidly sought-after creatives in the industry.”</p>
</div>
<div class="col-h col-3">
<h2>Programs of Study</h2>
<p>Since 1995, we’ve seen a lot of changes. But through all the trends, we still have one mantra – concept is king. Whether you come for Art Direction, Copywriting, Design, Image or Interactive Development, original ideas are what get you hired.</p>
<p>For more information about what we teach and why, please <a href="http://www.creativecircus.edu">download our Course Catalog</a></p>
</div>
</div>
我的 CSS 看起来像这样:
div.col-w {
overflow: hidden;
}
div.col-w.col-b {
font-size: 0;
height: 8px;
}
div.col-w div.col-h {
background-color: #FFF;
border: 8px solid #B2A68E;
-moz-border-radius: 8px;
border-radius: 8px;
float: left;
margin-bottom: -9000px;
margin-right: 5px;
padding: 10px 10px 9010px;
width: 29%;
}
我的底部边框都乱了。有什么建议吗?
【问题讨论】:
标签: css equals rounded-corners