Lately, I've been working with creating a list using CSS. My question: Is there a way to make a single call from the HTML to accomplish the same as the following (OR) a full replacment of similar design? Background: See CSS and round corners: Borders with curves My intention is to make a call like: <div class="roundborders">Insert Text Here</div> Which would place the borders around the text no matter how tall or wide. Any ideas???
It's not quite that simple. See the Thrash Box. It's about as simple as you can get assuming you need to support IE. If it weren't for IE's being several years behind in css support, it could be even easier. cheers, gary
Thanks for the info Gary. I had looked over the Thrashbox site which is nice. I'm already able to make the calls from HTML but, each is still pretty much individual calls. There must be some way to "combine" or insert into one class in the CSS. Thanks again,
<fieldset style="padding: 4"> <legend><b><font face=tahoma color=#550000 size=3> Rounded Corners </b></legend> <table border="0" cellpadding="0" style="border-collapse: collapse;" width="250" height="123"> <tr><td width="250" style="border:0px #000;"> <center> Check out this nifty little snippet. Might not be exactly what you are looking for, but someone might be able to use it.. I haven't tried it out in anything but IE as yet so it may not work in browsers other than IE... </td></tr></table> </fieldset>