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.

Question about text color

Discussion in 'HTML & Website Design' started by ViciousSummer, May 31, 2004.

  1. #1
    Okay, this may be a silly question, but here goes:

    I need to change the text color in my shopping cart, which is php generated. I'm using a template that uses a style.css document to define the text color for the entire site and I'm wondering if I can change just the text color (or the background color) within the shopping cart.

    You can check out my site here: http://www.viciousstyle.com/test . Put a product in the shopping cart and you'll see what I mean. You can't read what is actually in the cart because it's white text on white background.

    Any help would be appreciated :D !
     
    ViciousSummer, May 31, 2004 IP
  2. dazzlindonna

    dazzlindonna Peon

    Messages:
    553
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    not sure without seeing the actual stylesheet, but the table for the cart has <td bgcolor="#FFFFFF"> (which is the white background for the table cells where the text is). If the table <td>'s aren't relying on the stylesheet, then you can just modify the actual code on cart.php to change that bgcolor to something besides white. You'd need to change all those <td>'s in that table (which is within the form). hope that helps.
     
    dazzlindonna, May 31, 2004 IP
  3. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #3
    Thanks Dazzlin. The problem I'm having with that is that viewing the source from the site shows a different code then if I open the document "cart.php" in a text editor. Basically, rather then seeing the table that is generated on the website, I'm seeing this:

    <?php include "vsadmin/db_conn_open.php" ?>
    <?php include "vsadmin/includes.php" ?>
    <?php include "vsadmin/inc/languagefile.php" ?>
    <?php include "vsadmin/inc/incfunctions.php" ?>
    <?php include "vsadmin/inc/inccart.php" ?>

    Does that mean I would need to edit it in one of those docs instead?

    You can view the style sheet here: http://www.viciousstyle.com/style.css , if that helps at all :p

    Thanks for the help! :D
     
    ViciousSummer, May 31, 2004 IP
  4. Owlcroft

    Owlcroft Peon

    Messages:
    645
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just a quick thought in passing: do not forget, when choosing colors for anything, that a nontrivial portion of the population is partially or wholly color-blind. The partially color-blind are perhaps the gravest problem. I admit I am a hypocrite about this, but a lot of good sites on design raise the point.

    I wonder if there is a site anywhere that shows things as people with common forms of color blindness would see them? (Sort of the way you can see what your site looks like in Lynx, another thing few webmasters bother to do.)
     
    Owlcroft, Jun 1, 2004 IP
  5. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try:

    http://colorfilter.wickline.org/

    Mick :cool:
     
    Arnica, Jun 1, 2004 IP
  6. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Arnica, Jun 1, 2004 IP
  7. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #7
    wow, interesting links.

    interesting- but I don't know if I could ever design pages around that..
     
    disgust, Jun 1, 2004 IP
  8. Owlcroft

    Owlcroft Peon

    Messages:
    645
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I concur: Wow! Interesting links!

    I reckon that no careful web designer can possibly not be ashamed if he or she hasn't used the Lynx-look filter and the sites listed above in the design of a site.

    I am ashamed, but hope soon not to be . . . .

    What resources!
     
    Owlcroft, Jun 1, 2004 IP
  9. mrpaisa

    mrpaisa Guest

    Messages:
    741
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Within you CSS <font> <p> or <span> tag put in color="#fffff" or you can use an in style link in style="color:#FFFFFF;" ....
     
    mrpaisa, Feb 17, 2010 IP