Jump to content
Sign in to follow this  

Can someone tell me... (URGENT)

Recommended Posts

To color links, there are more ways. You can add inline style statements, but you can also choose for a stylesheet.

<a href="something" style="statements">Linktext</a>
<html><head>...<style type="text/css">a { statements }</style></head><body>...</body></html>
Both ways use statements to define anything about the <a> element.To color the link (both normal, visited, hover and active) use this statement:
color: purple
To underline the links or remove the underline:"
text-decoration: underlinetext-decoration: nonetext-decoration: overline underlinetext-decoration: line-through
To add several statements for the same element, separate them with a semicolon (;) like this:
<style type="text/css">a { color:purple; text-decoration:none }</style>
<a href="something" style="color:red; text-decoration:underline overline">link tekst</a>
You can also add different styles to all four states of the link, define statements for only certain classes and combinations between those two, but you should refer the tutorial then, CSS -> Advanced -> Pseudo-classes:) Edited by Dan The Prof

Share this post

Link to post
Share on other sites

Yes here is an easy way you can customize your page links..

<html><head><title> You Page Title </title><style type="text/css">  A{    color:blue;    text-decoration:none;    }  A:hover    {    color:red;    text-decoretion:underline;    }</style></head><body><a href="your-link"> This is Hyperlink </a><a href="your-link"> This is another Hyperlink </a></body></html>
The above code is a sample html page.. You can customize the colors as you like.. This stylesheet will apply to the all links of your page and normal link color wil be blue without underline. And when you mouse over it , its color becomes red with underline.For more detailed tutorial... Visit CSS Links and Menu Tutorial

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...