Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-18
7
Medium Priority
?
2,324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 2000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

688 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