Results 1 to 4 of 4

Thread: How to Create super thin table borders in html

  1. #1
    Join Date
    May 2009
    Posts
    735

    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

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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:
    <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>

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    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>

  4. #4
    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

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,009,174.77753 seconds with 16 queries