Solved

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

Posted on 2008-06-18
7
2,318 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error in page 3 46
Host asp.net pages 5 25
Split in Javascript 5 31
How to get this page layout correct 13 4
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

895 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

12 Experts available now in Live!

Get 1:1 Help Now