Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-06-2009
Member
 
Join Date: May 2009
Posts: 725
How to Create super thin table borders in html

Hello , I am a Html Newbie, learning some of it basics , i have created some basic pages with tables, but html page created have very thick borders, i have seen a website having a very thin border, i must say it was having A super thin border , can you tell me how can i create super thin border in html ? please help me thanks in advance
Reply With Quote
  #2  
Old 18-06-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: How to Create super thin table borders in html

Hello , you Can use these code , but dont forget to set the border to 1 it will make your table border very thin

Here is an example of HTML table:
Quote:
<TABLE Border="1">
<Caption> This is the title of the table </ CAPTION>
<TR>
A1 <TH> Title </ TH>
A2 <TH> Title </ TH>
A3 <TH> Title </ TH>
A4 <TH> Title </ TH>
</ TR>
<TR>
B1 <TH> Title </ TH>
Value <TD> B2 </ TD>
Value <TD> B3 </ TD>
Value <TD> B4 </ TD>
</ TR>
</ TABLE>
Reply With Quote
  #3  
Old 18-06-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: How to Create super thin table borders in html

Hello ,


Try this <table border="0" cellspacing="0" cellpadding="0" width="100%">

or

<TABLE BGCOLOR="black" CELLPADDING="0" CELLSPACING="1">
<TR>
<TD>
<TABLE BGCOLOR="white" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD>put your data here </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
Reply With Quote
  #4  
Old 18-06-2009
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: How to Create super thin table borders in html

In principle, the height and width of a cell automatically fit the data (text or image). However, you can define a height and width for a table or a cell spacing of cells and the size of the border can also be configured.

Set the following attribute to make your table get the super thin look
  • Cellpadding: Specifies the space in pixels between the border and the contents of the table cell
  • Cellspacing: Specifies the space in pixels between table cells
  • Border: Specifies the size in pixels (default 1) of the table border
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Create super thin table borders in html"
Thread Thread Starter Forum Replies Last Post
Is LG Marquee super-thin device available for pre-order? SaibalJha Portable Devices 8 18-10-2011 06:16 PM
No table borders in word 2007 sameer22 Windows Software 7 16-09-2011 10:05 PM
Create html table from excel file Laler Windows Software 3 26-06-2009 08:44 AM
How to create scrollbar around the table in HTML Ralph Lauren Software Development 3 14-05-2009 12:51 PM
Sony launches super thin,Bravia XEL-1 TV madhyena Monitor & Video Cards 2 29-01-2009 11:13 PM


All times are GMT +5.5. The time now is 11:36 AM.