Solved

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

Posted on 2008-06-18
7
2,317 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now