Accepting styles

Discussion in 'CSS' started by swollenpickles, Sep 10, 2006.

  1. #1
    What code do you use in order to get something to accept the styles that are already on the web page?
     
    swollenpickles, Sep 10, 2006 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    I'm not sure what you mean. Maybe this:

    "styles that are already on the web page":

    .something {
    color: red;
    }


    ***

    <p class="something">

    <div class="something">
     
    SoKickIt, Sep 11, 2006 IP
  3. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Sorry, I'm not 100% sure of what I'm meaning myself:eek:

    Basically I have a piece of code I want to include on my site that seems to have it's own style. I want this piece of code to take on the styles already on my page. Does that make sense?
     
    swollenpickles, Sep 11, 2006 IP
  4. netprophet

    netprophet Banned

    Messages:
    288
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    simple use style tag
    e.g <b style="color:red;"> and etc. this is called inland styles.
     
    netprophet, Oct 5, 2006 IP
  5. UmbrellaTechnologies

    UmbrellaTechnologies Active Member

    Messages:
    527
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    58
    #5
    If it has it's own style you need to conform the item to the style you are needing. The code below uses pctop1 as its reference and connects it to the color ffffff (white) - You might be using something similar already in the <head> of your page. Change the item to the name reference that the style needs. It would be nice to see what part of your item code holds the css code and we could help more.

    <style type="text/css">
    <!--
    a.pctop1 {color: #ffffff;}
    a.pctop1:hover {color: #bbbbbb; background: none;}
    -->
    </style>
     
    UmbrellaTechnologies, Dec 6, 2006 IP