Free Press Release Submission




MB Publishing Webmaster Resource ::
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 


How to get rounded corners in a table

 
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> HTML Help and Tricks
View previous topic :: View next topic  
Author Message
flann
Newbie
Newbie


Joined: Jul 13, 2005
Posts: 35

PostPosted: Wed Jul 13, 2005 4:56 pm    Post subject: How to get rounded corners in a table Reply with quote

This trick took me awhile to get right, first you need to create the rounded pictures. I make a square picture with a transparent background. I draw a circle that stretches to each of the four center points. I color in the corners, to match the background color, and then eventually making the original circle transparent, or erased. Cut the picture into four boxes, now you have your corner images.

Next thing you will want to do is make a table or two depending on how you want to make it. I always set the border to 1 so I can see what i'm working with. Below is the code, including css that I use to make this possible:

Add your own graphics, and use it as you see fit. If you want to see what it looks like, http://cummuta.freemortgagecalculator.net/

<html><head>
<style type='text/css'>
body {
background-color:#ccdddd;
}
table.main {
width:750px;
background-color:#ffffff;
}
table.banner {
width:750px;
border-bottom-style:solid;
border-bottom-color:#0C56AB;
}
.heading {
font-weight: bold
}
p.body {
margin-left:6px;
margin-right6px;
}
</style>
</head>
<body>
<table class='main' align='center' cellpadding='0' cellspacing='0'>
<tr><td align='right' colspan='5'><img src='topRight.jpg' border='0' /></td></tr>
<tr><td>
<table class='banner' cellpadding='0' cellspacing='0'><tr valign='top'><td align='left'>
<img src='YourLogo.jpg' border='0' /></td>
</tr></table>
<tr><td>


</td></tr>

<tr><td>
<!-- Begin Body -->


<!-- End Body -->
</td></tr>

<tr><td align='left'><img src='bottomLeft.jpg' border='0' /></td>
<td align='right'><img src='bottomRight.jpg' border='0' /></td>
</tr>

<!-- End Table main --></td></tr></table>
</body>
</html>
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> HTML Help and Tricks All times are GMT + 1 Hour
Page 1 of 1

 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Home | News Feeds | Release Archive | Web Marketing | Weight Loss | Publish Your Links | Press Release Topics | Free Downloads | Press FAQs | AvantGO | Amazon Store
Webmaster Forums | Search Releases | Press Topics | Feedback | Submit Press Release | Webmaster Surveys | Recommend | Top | Account | PM | Prweb | Free Link Submission | Add Downloads | New Media | Audio School | TOS

The comments are property of their posters, all the rest 2004 - 2008 by MB
Audana Ltd
You can syndicate our news using the file backend.php
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.962 Seconds. -