php-mysql tutorial

Designed By NISHANT GUPTA

  • Home
  • PHP
  • HTML
  • CSS
  • JavaScript
  • JQuery
  • Contact-us
  • Learn HTML

    • Introduction of HTML
    • Image Handling in HTML
    • List Handling in HTML
    • Font Handling in HTML
    • Table Handling in HTML
    • Form Handling in HTML
  • Learn CSS

    • Introduction of CSS
    • Styling Background in CSS
    • Styling Text in CSS
    • Styling Font in CSS
    • Styling Link in CSS
    • Styling List in CSS
    • Styling Table in CSS
    • Styling Div in CSS
    • Styling Span in CSS
    • Positioning in CSS
    • Display in CSS
  • Learn JavaScript

    • Introduction of JavaScript
    • Data Type in JavaScript
    • Variable in JavaScript
    • Oprator in JavaScript
    • Cond. Statement in JavaScript
    • Loop in JavaScript
    • Array in JavaScript
    • Function in JavaScript
    • Date in JavaScript
    • String in JavaScript
    • DOM in JavaScript
    • Event Handling in JavaScript
    • Form Handling in JavaScript
  • Learn PHP-MYSQL

    • Introduction of PHP
    • Decision Control in PHP
    • Loop in PHP
    • Array in PHP
    • Function in PHP
    • Form Handling in PHP
    • File Inclusion in PHP

Styling Link in CSS

Styling Link

  1. Links can be styled with any CSS property (e.g. color, font-family, background, etc.).
  2. Special for links are that they can be styled differently depending on what state they are in.
For Example

a

{

color: red;

}

This will style all aspects of the link (hover, visited, and active).To style each part separately, we use pseudoclasses.

Link Pseudoclasses
There are four basic types of link pseudo-classes we can define:
  1. :link - this is the default style for the link .
  2. :visited - after a link has been clicked.
  3. :hover - as a mouse is paused over a link (pre-click).
  4. :active - right as the link is being clicked
Creating  Pseudoclasses
  1. To define a link pseudo-class, we use it with the a tag in our CSS Selector.
  2. So, to change the visited color of all our links to grey, we write:
For Example

a:visited

{

color: grey;

}

Advertisements

 

©  2014 All Rights Reserved  •  Design by >Nishant Gupta.

Privacy Policy • Terms of Use