473,662 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hide column and row line in a table without disable the table border

18 New Member
hello evrybdy...

i need help...i wanna make a table that there is no column or row line exist in the table. yes,i want the border of the table line to be seen....

here's are my coding....

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <script type="text/javascript">
  7. function validate_form()
  8. {
  9.     var valid=true;
  10.     if(document.form.username.value=="")
  11.     {
  12.         alert(" Please fill in the ' User Name ' textbox. ");
  13.         document.form.username.focus();
  14.         valid=false;
  15.     }
  16.  
  17.     if(document.form.password.value=="")
  18.     {
  19.         alert(" Please fill in the ' Password ' box. ");
  20.         document.form.password.focus();
  21.         valid=false;
  22.     }
  23.     return valid;
  24. }
  25. </script>
  26. <style type="text/css">
  27. <!--
  28. .style1 {
  29.     font-family: "Courier New", Courier, monospace;
  30.     font-size: 36px;
  31.     color: #000000;
  32. }
  33. .style2 {
  34.     font-size: 36px;
  35.     color: #000099;
  36. }
  37. -->
  38. </style>
  39. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  40. </head>
  41.  
  42. <body>
  43. <form name="form" method="post" action="login0.php" onSubmit="return validate_form();">
  44. <div align="center">
  45.   <table width="881" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCFF99">
  46.     <!--DWLayoutTable-->
  47.     <tr>
  48.       <td height="35" colspan="5" valign="top" bgcolor="#FF6600"><!--DWLayoutEmptyCell-->&nbsp;</td>
  49.     </tr>
  50.     <tr>
  51.       <td height="129" colspan="5" valign="top" bgcolor="#99FFCC"><!--DWLayoutEmptyCell-->&nbsp;</td>
  52.     </tr>
  53.     <tr>
  54.       <td width="49" height="43"></td>
  55.       <td width="348"></td>
  56.       <td width="55"></td>
  57.       <td width="376"></td>
  58.       <td width="53"></td>
  59.     </tr>
  60.     <tr>
  61.       <td height="307">&nbsp;</td>
  62.       <td valign="top"><p class="style2">JKN Perlis&nbsp;</p>
  63.         <p><br>
  64.           Menggembleng tenaga ke arah kesihatan masyarakat yang lebih baik.</p>
  65.         <p>&nbsp;</p>        <p>Komited untuk memperkasakan masyarakat Perlis bagi mambuat keputusan yang bijak <br />
  66.       terhadap kesihatan diri dan keluarga </p></td>
  67.       <td>&nbsp;</td>
  68.       <td rowspan="2" align="center" valign="middle"><div align="center">
  69.         <table border="3" bgcolor="#F0F0F0">
  70.             <!--DWLayoutTable-->
  71.             <tr>
  72.               <td width="285" height="57" align="center" valign="middle"><p align="center"><em><code>Don't have an ID?</code></em></p>              </td>
  73.             </tr>            
  74.             <tr>
  75.               <td height="42" valign="top"><div align="center"><a href="main.php"><img src="button_0.jpg" alt="Create Account" width="281" height="32"></a></div></td>
  76.             </tr>
  77.             <tr>
  78.               <td height="165" valign="top" border="0"><table border="0" align="center">
  79. <tbody>
  80. <tr>
  81. <td align="center" valign="middle" style="text-align: center;">
  82. <p align="center"><strong>    LOGIN    </strong></p>
  83. <div align="center">
  84.   <table border="0" cellspacing="1" cellpadding="3" >
  85.     <tbody>
  86.  
  87.       <tr align="center" bgcolor="#FFFFFF">
  88.         <td><span style="font-family: Arial; font-size: small;">Username</span></td>
  89.     <td><span style="font-family: Arial; font-size: small;">    :    </span></td>
  90.     <td><span style="font-family: Arial; font-size: small;"><input name="username" type="text"></span></td>
  91.     </tr>
  92.  
  93.       <tr align="center" bgcolor="#FFFFFF">
  94.         <td><span style="font-family: Arial; font-size: small;">Password</span></td>
  95.     <td><span style="font-family: Arial; font-size: small;">    :    </span></td>
  96.     <td><span style="font-family: Arial; font-size: small;"><input name="password" type="password"></span></td>
  97.     </tr>
  98.  
  99.     <tr></tr><tr></tr>
  100.  
  101.     <tr>
  102.  
  103.     <td colspan=3 align=center><input name="Submit" type="Submit" value="Login">
  104.     <input name="reset" type="reset" value="Reset"></td>
  105.  
  106.     </tr>
  107. </p>
  108. </table>
  109. </div></td>
  110. </tr>
  111. </tbody>
  112. </table>&nbsp;</td>
  113.             </tr>
  114.         </table>
  115.         </div>        <p align="center">&nbsp;</p></td>
  116.       <td>&nbsp;</td>
  117.     </tr>
  118.     <tr>
  119.       <td height="120">&nbsp;</td>
  120.       <td>&nbsp;</td>
  121.       <td>&nbsp;</td>
  122.       <td>&nbsp;</td>
  123.     </tr>
  124.     <tr>
  125.       <td height="76"></td>
  126.       <td></td>
  127.       <td></td>
  128.       <td>&nbsp;</td>
  129.       <td></td>
  130.     </tr>
  131.     <tr>
  132.       <td height="90" colspan="5" valign="top" bgcolor="#FFFF99"><!--DWLayoutEmptyCell-->&nbsp;</td>
  133.     </tr>
  134.   </table>
  135. </div></form>
  136. </body>
  137. </html>
this is my current website....(ima ge website-table.jpg)
this is the website that i want to have.....(image website-table2.jpg).... this picture was made by using photoshop....

any respond would help....tq
Attached Images
File Type: jpg website-table.jpg (57.5 KB, 456 views)
File Type: jpg website-table2.jpg (54.2 KB, 405 views)
Jan 5 '12 #1
1 3615
zorgi
431 Recognized Expert Contributor
You can achieve what you want by nesting two tables. Outer table would have one row and one column and border = x. Inner table would have one column and 3 rows with border set to 0.

You could also try css. something like:

Expand|Select|Wrap|Line Numbers
  1.             table{
  2.                 border-width: 3px;
  3.             }
  4.             tr, td{
  5.                 border-width: 0px;
  6.             }
Jan 5 '12 #2

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

Similar topics

9
25801
by: Don Grover | last post by:
I have a HTML table created using ASP as a web page. ie. HEADING1 HEADING2 HEADING3 etc... data 1 data2 data3 etc and so on How can I toggle hide / show the columns individually, anyone ever needed to do this and have any suggestions.
7
18909
by: Marek Mänd | last post by:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions draw a nasty interiour border, which doesnt go away though I have on TD's css border:none set. Is it something wrong with my stylehseet or is it a bug of mozilla? I am asking this because of IE and Opera work differently here. <style>
1
2729
by: enak | last post by:
I populate a datagrid by setting the datasource to a datatable. I then, bind them. After that I try to hide the last column but am not able to. I get an error message. Here is my code: Me.dgReport.DataSource = ds.Tables("tFirst") Me.dgReport.DataBind() Me.dgReport.Columns(7).Visible = False
18
30490
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table dynamic. I have added a filtering mechanism (in javascript) that can be used to hide unneeded rows. However, each time I hide or show rows, the column sizes change, and this doesn't look good. Is there a way that I can preserve the column widths...
1
1594
by: mathijs rooda | last post by:
Hello, I hope someone can help me. I have a script that shows the last 8 rows of a recordset. the rows a seperated by a dottet line that is a gif in the repeat region. look at picture http://www.gameology.de/naamloos.gif my problem is that i dont want to show the last dottet line on the last row of the record. see arrow at picture. any knows how to do that?? Code :
0
1171
by: Christopher Lusardi | last post by:
Hello, I have a datagridview that is too wide for the form, so I'm trying to put scrollbars on the form and the datagridview table. But, when I run the application, look at the rightmost cells, and click on one of the rightmost cells the form scrolls to the leftmost end of the datagridview. I tried various permutations of the form's autoscroll, the datagridview's scrollbars, and the datagridview's selection mode without success. What do...
0
1300
by: Brian Tkatch | last post by:
Been trying to figure out how to show borderless forms indside an MDI Form, without showing the border at all. Given that (in our case) only one such form needs to show at a time, we were able to put a panel in the (entire) MDI client area and anchor it all around. Then, Show() the panel before opening a form, and after the Form.Show(), do a Panel.Hide(). Panel.BringToFront() and Panel.SendToBack() work just as well. We chose Hide()...
1
2692
by: ashik478 | last post by:
Hi! I have a problem. I have a table in oracle database with one field is primary key. Now I want to insert data from Datagridview with hide column which contain not null field(this field is autogenerated). Pls anyone help me. Thanks
20
12523
by: JFKJr | last post by:
Hello everyone, this is probably the simple question, but it is giving me very hard time to figure out. I am using the following "ALTER" statements to Add a column to a table and to move it to first (in Access VBA). And, I am able to add a column to the table with the following ALTER statement at line #1, but unable to move the column to first with the ALTER statement at line #2. DoCmd.RunSQL "ALTER TABLE TableData ADD COLUMN TEXT;"...
1
1819
by: perhapscwk | last post by:
Currently, my code is alright if I just need to add a new line the end of the line. First, my code to clone the second and third tr from the table, then add the clone line the end of list. But how can I write another "append" so I can add line in between the line? i try insertBefore, but not works. Please help. thanks. My html code <table border=0 cellpadding=5 cellspacing=0 id="quotetable">
0
8435
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.