Current location: Hot Scripts Forums » General Web Coding » CSS » rounded corners in tables


rounded corners in tables

Reply
  #1 (permalink)  
Old 11-23-09, 10:20 AM
vintagecollage vintagecollage is offline
New Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
rounded corners in tables

I am trying to make my tables with rounded corners and I feel sure I can do it in the CSS, but so far nothing has worked. I know I am coding something wrong and I have tried so many things I not even sure where to start again. Any suggestions are greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-23-09, 10:41 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by vintagecollage View Post
Any suggestions are greatly appreciated.
I'd suggest trying Google:

rounded corners CSS

Or this site::
25 Rounded Corners Techniques with CSS | CSS Juice
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to End User For This Useful Post:
vintagecollage (11-23-09)
  #3 (permalink)  
Old 11-23-09, 11:00 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
This creates a box - you may be able to use it with a table.

HTML Code:
<html>
<head>
<title>ImageMagick / CSS Rounded Rectangle Example</title>
<style type="text/css">
body
{
margin:0;
padding:0;
font-family: verdana;
}
.box
{
float:left;
margin:25px;
width:320px;
}
.box .tl,.box .tc,.box .tr,
.box .stl,.box .stc,.box .str,
.box .middle .ml,.box .middle .mc,.box .middle .mr,
.box .bl,.box .bc,.box .br
{
margin:0;
padding:0;
float:left;
}
.box .stl,.box .stc,.box .str
{
height:27px;
}
.stl
{
background:transparent url(shaded-border-tl.gif) no-repeat top left;
width:15px;
}
.stc
{
width:284px;
background:transparent url(shaded-border-tc.gif) repeat-x top left;
color:#fff;
}
.str
{
background:transparent url(shaded-border-tr.gif) no-repeat top right;
width:15px;
}
.stc h4
{
padding:4px;
margin:0;
}
.box .tl,.box .tc,.box .tr
{
height:15px;
}
.tl
{
background:transparent url(border-tl.gif) no-repeat top left; 
width:15px;
}
.tc
{
width:284px;
background:transparent url(border-tc.gif) repeat-x top left;
}
.tr
{
background:transparent url(border-tr.gif) no-repeat top right;
width:15px;
}
.box .middle
{
width:100%;
clear:both;
float:none;
min-height:100px;
}
.ml
{
width:1px; 
/* background:transparent url(border-ml.gif) repeat-y top left; */
}
.mc
{
width:313px;
border-color:#777;
border-left-style:solid;
border-right-style:solid;
border-left-width:1px;
border-right-width:1px;
background:transparent url(border-mc.gif);
}
.mc p,.mc h4
{
margin:5px;
}
.mr
{
width:1px;
/* background:transparent url(border-mr.gif) repeat-y top right; */
float:right;
}
.bl
{
background:transparent url(border-bl.gif) no-repeat top left;
width:15px;
height:15px;
}
.bc
{
width:284px;
height:15px;
background:transparent url(border-bc.gif) repeat-x; 
}
.br
{
background:transparent url(border-br.gif) no-repeat top right;
width:15px;
height:15px;
}
.break
{
float:none;
clear:both;
}
pre
{
margin:25px;
padding:10px;
background:#ccc;
border:1px dotted #aaa;
}
</style>
</head>
<body>
<h1>Rounded Rectangles - Variable Size</h1>
<p>Simple demonstration of the use of <a href="http://imagemagick.org" title="ImageMagick Home">ImageMagick</a> to create images to support CSS based rounded rectangles.</p>
<div class="box">
<div class="stl"></div>

<div class="stc"><h4>Shaded Title Box</h4></div>
<div class="str"></div>
<div class="middle">
<div class="ml"></div>
<div class="mc"><p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p></div>
<div class="mr"></div>
</div>
<div class="bl"></div>
<div class="bc"></div>
<div class="br"></div>
</div>
<div class="box">
<div class="tl"></div>
<div class="tc"></div>
<div class="tr"></div>

<div class="middle">
<div class="ml"></div>
<div class="mc">
<h4>Rounded Corner Box</h4>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p></div>
<div class="mr"></div>
</div>
<div class="bl"></div>
<div class="bc"></div>
<div class="br"></div>
</div>
<div class="break"></div>
<hr />
<h2>ImageMagick Calls to Create Images</h2>

<pre>
convert -size 100x100 xc:none -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15" rr.png
convert -size 100x50 gradient:"#777777-none" -gravity center -crop 100x27+0+0  +repage gradient.png
convert rr.png gradient.png -compose srcin -composite -fill none -strokewidth 1 -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15"  rrg.png
convert rrg.png -crop 15x27+0+0 +repage -flatten shaded-border-tl.gif
convert rrg.png -crop 1x27+50+0 +repage -flatten shaded-border-tc.gif
convert rrg.png -crop 15x27+85+0 +repage -flatten shaded-border-tr.gif
convert rrg.png -crop 15x15+0+85 +repage -flatten border-bl.gif
convert rrg.png -crop 1x15+50+85 +repage -flatten border-bc.gif
convert rrg.png -crop 15x15+85+85 +repage -flatten border-br.gif
convert rrg.png -crop 2x5+0+50 +repage -flatten border-ml.gif
convert rrg.png -crop 1x1+50+50 +repage -flatten border-mc.gif
convert rrg.png -crop 2x5+98+50 +repage -flatten border-mr.gif
convert -size 100x100 xc:none -fill none -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15" rr2.png
convert rr2.png -crop 15x18+0+0 +repage -flatten border-tl.gif
convert rr2.png -crop 1x18+50+0 +repage -flatten border-tc.gif
convert rr2.png -crop 15x18+85+0 +repage -flatten border-tr.gif

</pre>
<hr />
<h2>Images</h2>
<img src="border-tl.gif" />
<img src="border-tc.gif" />
<img src="border-tr.gif" />
<br />
<img src="shaded-border-tl.gif" />
<img src="shaded-border-tc.gif" />
<img src="shaded-border-tr.gif" />
<br />
<img src="border-ml.gif" />
<img src="border-mc.gif" />

<img src="border-mr.gif" />
<br />
<img src="border-bl.gif" />
<img src="border-bc.gif" />
<img src="border-br.gif" />
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
vintagecollage (11-23-09)
  #4 (permalink)  
Old 11-23-09, 11:52 AM
vintagecollage vintagecollage is offline
New Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Thank you both for your replies! Will be checking all out and most likely not get anything else done until I figure it out!

I thank you and so does my husband! He keeps reminding me he actually has a real job and this helping me redesign my websites is only part time and he is not sure the benefits are worth the time he spends trying to help me!

Happy Thanksgiving!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounded corners and shadowed boxes harish CSS 10 05-04-09 05:51 AM
[SOLVED] Best Way to apply rounded corners? outhowz42 CSS 4 07-28-08 12:06 PM
[SOLVED] Rounded Corners chambaz CSS 2 03-09-08 06:19 AM
flexible rounded corners for this design lindasnephew CSS 4 03-05-08 09:44 AM
Rounded corners with photoshop zoliky The Lounge 4 11-25-07 05:09 AM


All times are GMT -5. The time now is 10:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.