473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Need Help, Rounded Corner Table Using CSS

crystal2005
Hi i encounterd some problem when i implement CSS for rounded Corner table.

Need help please... :D

[html]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Heaventure Sole-Proprietor">
<meta name="keywords" content="Heaventure, Company, Heaventure Company, Singapore" />

<title>Heaventure</title>

<style type="text/css">
<!--
b.rtop, b.rbottom{display:block; background: #FFFFFF}
b.rtop b, b.rbottom b{display:block; height: 1px; overflow: hidden; background: #89deff}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
-->
</style>
</head>

<body bgcolor = "#FFFFFF">
<center><img src="images/logo.gif" alt="Heaventure"></center><br>

<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#89deff">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>

<table width="100%" border="0" cellpadding="3" cellspacing="5" bgcolor="#89deff">
<tr>
<td colspan="3"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Member Login</font> </strong></td>
</tr>
<tr>
<td width="78"><font face="Verdana, Arial, Helvetica, sans-serif">Username</font></td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif">Password</font></td>
<td>:</td>
<td><input name="mypassword" type="password" id="mypassword"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Login"></td>
</tr>
</table>

</td>
</form>
<tr>
<form name="form2" method="post" action="contact.php">
<td>

<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#89deff">
<tr><td colspan="1"></td></tr>
<tr><td><hr align = "center" size = "5" width = "100%"></td></tr>
<tr><td><input type="submit" name="contact" value="Contact Admin"></td></tr>
</table>

</td>
</form>
</tr>
</table>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
<br>
<p>
<center>
<font face="Tahoma" size="1">
<span>2007 © Heaventure All Right Reserved</span>
</font>
</center>
</p>

</body>
</html>
[/html]

have a look the following image

http://xs320.xs.to/xs320/07420/heaven.jpg

two lines, both upper and bottom line, are too long. Is there anyway to solve this problem??

Thanks in advance.
Oct 21 '07 #1
1 2928
drhowarddrfine
7,435 Expert 4TB
You are declaring html with the proper doctype, yet use XHTML closing tags ('/>'). Remove the slashes.

There are 29 html errors that need fixing.

I don't know how you could get rounded corners from using <b>. In addition, <b> is not a structural element but a styling element for text. Using it as you do is like saying "I want the color of the toy to be 50px wide".

In any case, you don't say how wide this is supposed to be but to follow the width of the table, it needs to be inside the table or wrapped in a div around the table.

If the function of the <b> is to provide a horizontal rule only, then use a <hr> (horizontal rule).
Expand|Select|Wrap|Line Numbers
  1. <hr style="width:50%;margin:0 auto;height:8px;background-color:blue">
Oct 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Mel | last post by:
how can i have a rounded edge button in my forms using CSS ? thanks Mel
4
by: Dan V. | last post by:
What is the best way to have a background image stretch and have the 'left rounded corner' look. Please see the top header at this website for an example: www.kingtree.ca and...
1
by: Stephen Takacs | last post by:
I've been reading lots of rounded corners table tutorials lately, because I'm a Perl guru, not an HTML guru. :-) So far all of the examples I've seen have edges with narrow angles, which fit...
1
by: MrNobody | last post by:
I want to have a boxed off area on my GUI which will behave essentially like a very simple ListBox, with items stacking vertically in a list with a scroll bar if the stacked items go beyond the...
3
by: laredotornado | last post by:
Hi, I was recently exploring JQuery and the rounded corner plugin -http:// methvin.com/jquery/jq-corner-demo.html, unfortunately, this plug-in seems to only apply to rounding corners in the...
5
by: Stuart Ferguson | last post by:
I am looking to create the effect shown in the image (http://img291.imageshack.us/img291/4476/effectuc6.jpg) this is taken from www.asp.net. I was wondering if there is a specific technique to...
1
by: kidelectric | last post by:
The issue I am having is that I would like to be able to drag-and-drop div elements that have rounded corners.* Since these elements will be dynamically created (including background color), I could...
2
by: raknin | last post by:
Hi, I am looking for a css and js solution for making rounded corners, with no images. Currently I tried to use nify corners as describe in http://www.html.it/articoli/nifty/index.html in example...
2
by: manjitsarma | last post by:
Please tell me how to get a panel with rounded corner.. I am using below code for that,but i am not getting the panel with rounded corners.If the value of Radius is increased only the Width of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.