• rafmedia
  • Born
  • Born
  • rafmedia
  • Posts: 1

Post 3+ Months Ago

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

Создание сайтов казань
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5146
  • Loc: SC-USA

Post 3+ Months Ago

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;}
  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2008
  • Loc: Belgrade, Serbia

Post 3+ Months Ago

also from what I understand capital letters are best avoided - so 'a' instead of 'A'! And that should do it........
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13506
  • Loc: Florida

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 38 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-2015. Ozzu® is a registered trademark of Unmelted, LLC.