Results 1 to 2 of 2

Thread: CSS interfering with my donation box.

  1. #1
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS interfering with my donation box.

    So this is the script for the donation box.

    <script src="http://donatemeter.com/showbutton.php?i=281&item=27&width=170&direction=vertical&showtop5=yes&background=0072BC&graph1=red&graph2=maroon&text=white">

    See background color is 0072BC (Blue), text is white etc.

    But this part of my css:

    Code:
    table {background-color: #363636;}
    th {background-color: #E1E1E1; font-size: 11pt;}
    td {background-color: #FFF; font-size: 10pt;}
    Is changing the design. How do I keep it blue background and white text.

    This is what happens when the above css is there: http://openlite.5gigs.com/indextest.html
    See how it changes the color to white and black.

    Then when the above css is removed:
    http://openlite.5gigs.com/indexnumber2.html

    So, how do I make it look like that blue donation box with white text without removing the code above. I've tried adding a div and style for the donation box, but that doesn't seem to override the above css.

    CSS: http://pastebin.com/703726

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You're missing the required type attribute from that tag.
    Anyway...
    Specify a new class in the CSS that overrides it:
    Code:
    div.nooverride table {background-color: #0072bc;}
    div.nooverride th {background-color: #0072bc;}
    div.nooverride td {background-color: #0072bc;}
    div.nooverride {color: white;}
    ... and wrap the script in that div:
    Code:
    <div class="nooverride"><script src="http://donatemeter.com/showbutton.php?i=281&item=27&width=170&direction=vertical&showtop5=yes&background=0072BC&graph1=red&graph2=maroon&text=white" type="text/javascript"></div>
    Oh, and points are a bad choice for onscreen meaurements. They're a real-world size, and as such will vary greatly onscreen.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •