ARRRRGGGGGGGG! I need stylesheet help!

  • Shattered Plastic
  • Student
  • Student
  • Shattered Plastic
  • Posts: 66

Post 3+ Months Ago

I just added external stylsheets to my pages with the <link rel code. I want to change the colours of a few bits of text on my page but the <font tag won't work. How in the world do I fix this?!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • darkthroniar
  • Beginner
  • Beginner
  • User avatar
  • Posts: 42
  • Loc: Los Angeles, CA

Post 3+ Months Ago

Hi..

Can i see the code??
  • Shattered Plastic
  • Student
  • Student
  • Shattered Plastic
  • Posts: 66

Post 3+ Months Ago

I just got fed up with it and took the whole code out, I don't have it any more. Sorry
  • Mr Smith
  • Graduate
  • Graduate
  • Mr Smith
  • Posts: 150
  • Loc: Birmingham, England

Post 3+ Months Ago

...bear in mind that you shouldn't be using font tags anyway.....all that should be in css, which you reference to by calling either 'id' or 'class' or whatever

for e.g, if you wanted a block of <p> text to be red, you would do this in your html

Code: [ Select ]
<p class="red">text text text blah blah whatever...</p>


and this in your external css

Code: [ Select ]
p.red {font-size:11px;color:#f00;}


if you mean you want one or two words in a block of text to be a different colour/highlighted, then use <span>
and still use the class or id method as above
  • yagas
  • Novice
  • Novice
  • User avatar
  • Posts: 25
  • Loc: China

Post 3+ Months Ago

Code: [ Select ]
<html>
<head><title>test</title>
<style>
a{font-color:red}
</style>
</head>
<body>
<a href=#>line</a>
</body>
</html>
  1. <html>
  2. <head><title>test</title>
  3. <style>
  4. a{font-color:red}
  5. </style>
  6. </head>
  7. <body>
  8. <a href=#>line</a>
  9. </body>
  10. </html>
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

CSS declarations such as
Code: [ Select ]
p * { ... }

will override font elements.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 71 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.