Solved

How can I make a table border like a thin line?

Posted on 2008-06-18
7
2,320 Views
Last Modified: 2012-06-21
How can I make a table border like a thin line?
I think we can use style="border-collapse: collapse"
but it seems to be not what I want....
0
Comment
Question by:mawingho
7 Comments
 
LVL 2

Expert Comment

by:ayus80
ID: 21819242
0
 
LVL 4

Expert Comment

by:sajay_j
ID: 21819361
table, td { border:1px solid #ccc; } if it is correct.
Regards
Sajay.
0
 
LVL 13

Expert Comment

by:compfixer101
ID: 21819500
<table border="1"> {table ans text here}</table>
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Expert Comment

by:arunavela
ID: 21819785
table { border: thin solid } or table { border: 1px solid }
0
 

Expert Comment

by:arunavela
ID: 21819789
table { border: thin solid } and set the cellsapcing and padding is 0
0
 
LVL 19

Accepted Solution

by:
LordOfPorts earned 500 total points
ID: 21826019
Below is another example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Table With Thin Border</title>
    
    <style type="text/css">
    
    table 
    {
        border-top:     1px solid #999999;
        border-left:    1px solid #999999;
    }
    
    td
    {
        border-right:   1px solid #999999;
        border-bottom:  1px solid #999999;
    }
    
    </style>
</head>
<body>
 
<table cellpadding="5" cellspacing="0">
 <tr>
  <td>Cell 1</td>
  <td>Cell 2</td>
 </tr>
 <tr>
  <td>Cell 3</td>
  <td>Cell 4</td>
 </tr>
</table>
 
</body>
</html>

Open in new window

ThinBorderTable.png
0
 
LVL 13

Expert Comment

by:compfixer101
ID: 21826733
it really depends on whether you want it done by CSS or by the actual table tag..
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question