HTML question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • detoxed
    vip member
    • Jan 2003
    • 17798

    #1

    HTML question

    How do i make a table have a 1 pixel wide black border around it?
    Just a black line basically..
  • p00p
    Confirmed User
    • Dec 2002
    • 5125

    #2
    CSS works the easiest
    ICQ: 316365783
    <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>

    Comment

    • iroc409
      Confirmed User
      • Jan 2003
      • 4728

      #3
      table border=0 cellpadding=0 cellspacing=0 bgcolor="#000000" width=504 height=504 | tr | td align="center" valign="center |
      table border=0 cellpadding=0 cellspacing=0 bgcolor="#ffffff" width=502 height=502 | tr | td align="center" valign="center |


      that works too, if you can use absolutes
      <a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


      icq: 1 7 6 4 2 0 9 6 0
      Gallery templates for ONLY $25! w00t!

      Comment

      • NBDesign
        Confirmed User
        • Jan 2003
        • 5814

        #4
        Originally posted by p00p
        CSS works the easiest
        I agree, otherwise... set a table 9x9, all the outer cells 1 px with a blank spacer image in it, set the cell background to black and the center cell is for your content.

        Use Lensman's program and get the most for your hard earned traffic.


        Get Heidi for your site Here. Lots of sets to choose from.
        She makes a great Addition to any site. Grab one Grab All.

        Comment

        • chodadog
          Confirmed User
          • Apr 2002
          • 9736

          #5
          I do it this way. Add these into your td tags.

          PHP Code:
          style="BORDER-LEFT: #000000 1px solid"
          style="BORDER-TOP: #000000 1px solid"
          style="BORDER-BOTTOM: #000000 1px solid"
          style="BORDER-RIGHT: #000000 1px solid" 
          
          Obviously, if you have a complex table, you'll have to figure out what goes where. But yes, easy enough.
          26 + 6 = 1

          Comment

          • detoxed
            vip member
            • Jan 2003
            • 17798

            #6
            thanks, i used


            html

            Comment

            Working...