My CSS

  • rafmedia
  • Born
  • Born
  • No Avatar
  • Joined: Dec 23, 2008
  • Posts: 1
  • Status: Offline

Post December 23rd, 2008, 10:37 pm

Whats wrong with my CSS? =(

Code: [ Select ]
A:link    {color: #008cdc, text-decoration: underline}
A:visited {color: #008cdc, text-decoration: underline}
A:hover   {color: #008cdc, text-decoration: none}
  1. A:link    {color: #008cdc, text-decoration: underline}
  2. A:visited {color: #008cdc, text-decoration: underline}
  3. A:hover   {color: #008cdc, text-decoration: none}


Please help


_____________________
Создание сайтов казань
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 23rd, 2008, 10:37 pm

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post December 24th, 2008, 4:13 am

The end of each definition within a selector should be a semi-colon, not a comma. It doesn't need to be present in the last definition, but I find it better to add it for good measure.

Code: [ Select ]
A:link    {color: #008cdc; text-decoration: underline;}
A:visited {color: #008cdc; text-decoration: underline;}
A:hover   {color: #008cdc; text-decoration: none;}
  1. A:link    {color: #008cdc; text-decoration: underline;}
  2. A:visited {color: #008cdc; text-decoration: underline;}
  3. A:hover   {color: #008cdc; text-decoration: none;}
- dM
  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Oct 30, 2007
  • Posts: 2008
  • Loc: Belgrade, Serbia
  • Status: Offline

Post December 24th, 2008, 4:57 am

also from what I understand capital letters are best avoided - so 'a' instead of 'A'! And that should do it........
Eagles may soar in the sky but weasels don't get sucked into jet engines.

celandine designblog
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post December 24th, 2008, 5:29 am

There doesn't have to be a semi-colon between the last rule and the closing brace, but it helps to keep adding new rules from causing errors a month down the road. :D
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: roelof and 183 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.