More CSS stuff

  • Started
  • Last post
  • 2 Responses
  • gsd

    I always ask questions on here. Here's another one. How do I get different lines to have different colours in the same paragraph in CSS? The way I tried it, which seemed to work in dreamweaver but not Safari, was : p {font: 900 15px helvetica; line-height: 15px; color: 993360} x {font: 900 15px helvetica; line-height: 15px; color: AAA18E}

  • ants0

    the way I would do it is to use the tag "span" and class each colour separately. If the information is going to be similar each colour, then label the class that piece of information... span.announcement {color:#ffffcc;} etc.

    don't use the p or font tag to do it, with span then, only determine the colour of the text. that way your fonts are consistent, and the colour is the only difference.

  • gsd0

    In fact - sod it. I don't even know what I'm talking about. I'll deal with this later.