Results 1 to 7 of 7
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Can some kind person tell me how to put a single line border around tables. I am using Dreamweaver and if I set border to 1 it gives a thick line. I want just a thin black outline.

    Thanks in advance

  2. #2
    Resident Genius and Staunch Capitalist Leader's Avatar
    Join Date
    January 18th, 2005
    I haven't done bordered tables in a while but I just opened up DW and checked it out.

    Putting the table border to "1" is indeed the way BUT--it also puts a border around the individual cells. Where the cell border meets the table border, it looks thick. (Even if you only have one cell, it puts a border around that AND the actual can easily see that it does that if you test with a cell that's smaller than the table itself.)

    To negate this effect, set the cell border color to white (or whatever color your background color is, so the cell border becomes invisible against it). Then you should see a thin line around the table only, and not the cell(s).

    Also it seems that you will have to set the *table* border color to Black or you will get gray instead.


    [ 07-29-2002: Message edited by: Leader ]

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Brilliant, thanks - works a treat

  4. #4
    Full Member
    Join Date
    January 18th, 2005
    Here is another way.... Also works to place a 1 pixel line around the whole page too!

    <.TABLE cellSpacing=1 cellPadding=0 align=center valign=top bgcolor="#003366" border=0>
    <.TR><.TD bgcolor=white>
    Your stuff!

    Set 1st table cellspacing to the number of pixels you want the border to be, and also the bgcolor to desired border color.

    Your data goes in the embedded table. Remove the "." from the "<." in segment above.

    Jim in Texas [img]/infopop/emoticons/icon_smile.gif[/img]

    Patriot, Army Type, One Each...
    USA - This We'll Defend

  5. #5
    Join Date
    January 18th, 2005
    To put a thin line just around the table, just do is this in your table tag:

    <* table style="border: 1px solid blue" *>

    change blue to whatever color you want.

    If you just want it on the sides:

    <* table style="border-right: 1px solid blue; border-left: 1px solid blue" *>

    Makes a nice, thin border.


    Stuff that makes me go, "huh?"

  6. #6
    ABW Ambassador buy_online's Avatar
    Join Date
    January 18th, 2005
    Richmond, VA
    1px transparent graphic is a great way to do it. In Dreamweaver, it's a little strange. Think of it this way,in WYSIWYG mode:

    <LI>Put columns on either side of the box
    <LI>Color the cells in the column the way you want your border to look
    <LI>Put a 1x1 pixel transparent gif in each cell in the column
    <LI>Next, add a row to the top of you box, and a row to the bottom too.
    <LI>Color the rows the way you want your border to look.
    <LI>Place those magic 1x1 Pixel gifs in each of the cells in your new rows.
    <LI>Last, resize the rows and columns to 1px wide (or high) by dragging the lower border on rows (right border on columns).

    You will probably want to go and check the code itself, to make sure the rows and columns are all at 1px. Dreamweaver has a habit of making them 2 pixels when you drag them out front. Remember to put a 1x1 pixel gif in every cell you want to control this way.

    Hope this helps.

    In an effort to watch your cholesterol, you eat Spam Lite.

  7. #7
    Join Date
    January 18th, 2005
    I like to desing my own line and just make another column in the table. If you would like to see what I am talking about visit my home page and at the top between the games I have a vertical holly bar to seperate the games and descriptions. I just create a table that is 5 columns wide and use three of them for games and two of them for the spacer graphic. Hope this helps for you.

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Over the border?
    By Mr. Sal in forum Daily Chuckle
    Replies: 2
    Last Post: November 1st, 2012, 09:37 AM
  2. Search Results Table vs Lines suggestion
    By bigsite in forum GoldenCAN
    Replies: 3
    Last Post: May 30th, 2008, 01:04 PM
  3. Why border=0
    By glittered in forum Midnight Cafe'
    Replies: 12
    Last Post: January 19th, 2007, 11:28 AM
  4. css/table border Question
    By ~Michelle in forum Midnight Cafe'
    Replies: 3
    Last Post: January 12th, 2006, 06:55 AM
  5. Can you add a border?
    By blizz93cw in forum Commission Junction - CJ
    Replies: 2
    Last Post: December 1st, 2003, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts