1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

help needed putting border around table...

Discussion in 'HTML & Website Design' started by crb187, May 25, 2008.

  1. #1
    I am sure this is a really easy task. I have tried all sorts of different tags in different places but cannot get it how i want.

    Basically, i want a black border on my main content table, about 10 pixels.

    If anyone could let me know how to do this i would be greatful.

    I also want to know how to not have the border show at the top or have any padding at the top. Hope this makes sense.:)

    the site is www.allscoresnow.com
     
    crb187, May 25, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    That's an iframe. Do you have access to the livescore source?
    .tabulka {
      border: 10px solid gray;
      border-top: none;
      }
    Code (markup):
    Or, if you meant the whole thing,
    
    iframe {
      border: 10px solid gray;
      border-top: none;
      }
    Code (markup):
    cheers,

    gary
     
    kk5st, May 25, 2008 IP
  3. crb187

    crb187 Active Member

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    thanks for the reply. It seems i was a little unclear about the table i was talking about. I am not wanting a border around the iframe (livescores), i was wanting a border around the main table, i.e the table containing everything. Literally i just want a border around it all. Hope this makes more sense?!:confused:

    Thanks anyway though, i think i was a little unclear.
     
    crb187, May 25, 2008 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Give that top level table an id, say 'wrapper'. Then in the stylesheet,
    
    body { 
      margin: 0;  /*browsers default to 8px margin on body*/ 
      }
    
    #wrapper {
      /*same border rules as previous post*/
      }
    Code (markup):
    There may be a browser or two which apply 8px padding to html, instead of margin on body.

    cheers,

    gary
     
    kk5st, May 25, 2008 IP