CSS bug

Discussion in 'CSS' started by neil patrick harris, May 17, 2008.

  1. #1
    neil patrick harris, May 17, 2008 IP
  2. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure i understand what your talking about. The ads under the torrent list are blue, you want them normal? im not sure what your saying.
     
    X.Homer.X, May 17, 2008 IP
  3. Greg-J

    Greg-J I humbly return to you.

    Messages:
    1,844
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    135
    #3
    If you're trying to control the font style of the adbrite ad with css on the same page, you can't. The Adbrite Ad writes an iframe and you can't control the style of an iframe from outside it in that manner.
     
    Greg-J, May 17, 2008 IP
  4. neil patrick harris

    neil patrick harris Peon

    Messages:
    288
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Im trying to remove the style that my css adds to it. As you can see it looks just like my table now.
    the bottom block of ads.
    :(
     
    neil patrick harris, May 17, 2008 IP
  5. Greg-J

    Greg-J I humbly return to you.

    Messages:
    1,844
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    135
    #5
    :eek: Indeed.

    I didn't know AdBrite worked in that way.
     
    Greg-J, May 17, 2008 IP
  6. neil patrick harris

    neil patrick harris Peon

    Messages:
    288
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    neil patrick harris, May 17, 2008 IP
  7. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You have specified inside your document before the Adbrite:

    <div id"longad">

    This should be:

    <div id="longad">
     
    wd_2k6, May 18, 2008 IP
  8. neil patrick harris

    neil patrick harris Peon

    Messages:
    288
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks I tried that but the adbrite ad still gets tabled. :(
     
    neil patrick harris, May 18, 2008 IP
  9. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    try adding a class to your adbrite table.
    instead of having

    
    table{border-collapse:collapse}
    
    
    td,th{border:1px solid #C8C8C8 ;padding:5px}
    table tr:hover td{
    
    Code (markup):
    make it

    
    table.[b]torrents[/b]{border-collapse:collapse}
    
    
    td,th{border:1px solid #C8C8C8 ;padding:5px}
    table.[b]torrents[/b] tr:hover td{
    
    Code (markup):
    replace torrents with any class name you would like, if you don't like "torrents".

    then in your html, replace this

    
    <table width="470" cellspacing="1" cellpadding="2" id="myTable" class="">
    
    Code (markup):
    with this

    
    <table width="470" cellspacing="1" cellpadding="2" id="myTable" class="[b]torrents[/b]">
    
    Code (markup):
    use the same class name as in the css, this should not style the adbrite table.
     
    X.Homer.X, May 23, 2008 IP
  10. neil patrick harris

    neil patrick harris Peon

    Messages:
    288
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Cool! it looks alot better now. Thanks for the help. ;)
     
    neil patrick harris, May 23, 2008 IP
  11. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    No problem.
     
    X.Homer.X, Jun 3, 2008 IP