Will this css (text bacground color) work well?

Discussion in 'CSS' started by madmn, Sep 22, 2006.

  1. #1
    Any problems will highlighting text this way?

    Here is the code:

    .compromise {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: bold;
    color: #333333;
    text-decoration: underline;
    background-color: #FFFFCC;
    }
     
    madmn, Sep 22, 2006 IP
  2. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    works ok in IE and FireFox
     
    MiamiHost, Sep 22, 2006 IP
  3. Lightning-Software

    Lightning-Software Well-Known Member

    Messages:
    204
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    If it is only a little bit of text I would style a span for it. But if you are doing all the same text inside the div that will work.
     
    Lightning-Software, Sep 27, 2006 IP