Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML links with different colors.
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Clark
links with different colors.
2 Answer(s)      4 years and a month ago
Posted in : HTML


How can I have two sets of links with different colors?


Advertisement
View Answers

November 2, 2010 at 4:09 PM


Hi friends,

You can suggest this presentation using style sheets. In your style sheet, define something like this:

a:link        {color: blue;   background: white}
a:visited     {color: purple; background: white}
a:active      {color: red;    background: white}
a.foo:link    {color: yellow; background: black}
a.foo:visited {color: white;  background: black}
a.foo:active  {color: red;    background: black}

Then use CLASS="foo" to identify the links of the second color in your HTML, like this:



November 2, 2010 at 4:10 PM


You can suggest this presentation using style sheets. In your style sheet, define something like this:

a:link        {color: blue;   background: white}
a:visited     {color: purple; background: white}
a:active      {color: red;    background: white}
a.foo:link    {color: yellow; background: black}
a.foo:visited {color: white;  background: black}
a.foo:active  {color: red;    background: black}

Then use CLASS="foo" to identify the links of the second color in your HTML, like this:

<A CLASS="foo" HREF=...>...</A>


Related Tutorials/Questions & Answers:
links with different colors.
links with different colors.  How can I have two sets of links with different colors
Write an applet program for displaying 3 different sentences with 3 different colors
Write an applet program for displaying 3 different sentences with 3 different colors  Write an applet program for displaying 3 different sentences with 3 different colors
Advertisements
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi, i have drawn a simple table using swings and now i want to mark diffent colors for each row..............my target is to have each color for each row.......first row
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi frends, Actually yesterday i had a question that, how can i mark colors to my rows in the table using swings.............one of my frend posted the solution also
Here is a set of 18 different shades of one of the most favourite Choclate colors
; padding:5px 0px 5px 5px; } Here is a set of 18 different shades of one of the most favourite choclate colors rangeing from light choclate color to darker
Here is a set of 26 different shades of one of the most favourite Red colors
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Red colors rangeing from light Red color to darker Red color
This is a set of 18 different shades of DarkSalmon colors covering lighter DarkSalmon color to darker DarkSalmon color.
:5px 0px 5px 5px; } This is a set of 18 different shades of DarkSalmon colors covering lighter DarkSalmon color to darker DarkSalmon color
This is a set of 26 different shades of brown colors covering light brown to darker brown.
:5px 0px 5px 5px; } This is a set of 26 different shades of brown colors
Here is a set of 26 different shades of one of the most favourite Orange colors rangeing from light Orange color to darker Orange color.
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Orange colors rangeing from light Orange color to darker Orange color
Here is a set of 26 different shades of one of the most favourite Pink colors rangeing from light Pink color to darker Pink color.
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Pink colors rangeing from light Pink color to darker Pink color
specify colors
specify colors  How can I specify colors
Inbound Links: Importance of inbound links
Inbound Links: Importance of inbound links...; In this section we will understand the importance of inbound links for getting higher ranking in search engine and search result or SERPs. Inbound links are also
Ajax Links
Ajax Links       AJAX links, code samples and news Read full Description
different borders
; enter the values in that cell then we create different borders and we also sets the different colors. . Code description  The package we need to import... different borders      
links open new windows
links open new windows  Why do my links open new windows rather than update an existing frame
sendRedirect to multiple links
the above line. i want redirect to multiple links simultaneously. anyone help me
how to print all colors using awt
how to print all colors using awt  how to print all colors using awt
display of colors in a table - JSP-Servlet
display of colors in a table  Hi, If i have a table of 4 by 4 boxes, numbering from 1-16 in sequence, how do i make them display one column of one color and another column of another color? Thanks!  Hi Friend
Importance of Inbound Links,Role of Inboud Links in SEO,Inbound Links and its Role in Search Engine Optimization
Inbound Links: Importance of Inbound Links... will understand the importance of inbound links for getting higher ranking in search engine and search result or SERPs. Inbound links are also known as back links
redirect to multiple links from servlet
redirect to multiple links from servlet  hello , In my servlet page , i'm using response.redirect("www.somewebsiteaddress.com"); after it shows... want redirect to multiple links simultaneously. anyone help me out
html page viewed on different os
html page viewed on different os  The colors on my page look different when viewed on a Mac and a PC
JSlider with RGB Colors
JSlider with RGB Colors In this section, you will learn how to create sliders to show RGB colors. In this example, we  have created three horizontal sliders, first one as red, the second one as green and the third one as blue
Bioinformatics Tutorials, Links, Programs
Tools, Online Resource, Links to Bioinformatic Resources and Tutorials. Here you... number of Biological Database Links    Bioinformatics Tools This section describes different bioinformatics tools
How to show Rainbow Colors
How to show Rainbow Colors       This section illustrates you how to show all the seven colors of colors. The Rainbow consists of seven colors known as VIBGYOR i.e. violet
Set Background Colors and Images in HTML
Set Background Colors and Images in HTML       The  background colors can be set...;   Example: Background Colors <html>
save links clicked in search engine results
save links clicked in search engine results  hello i need to access search engine results in my program(any search engine).ie suppose i give...; But i'm not able to find how to save the links the user clicks.hope you
hibernate versions
In this section, you will find links to the official documentation of different hibernate versions
In pagination how to hilight the links - JSP-Servlet
In pagination how to hilight the links  Dear Sir, In pagination how to highlight the links or how to change the color of that link when i clickon that particular link....Please help me sir.. Some of the code which i
Different JRE
Different JRE  Java is platform independent. The why different JRE's there for differen operating systems
Biological Databases Links
are organized for optimal retrieval and analysis.Here are the links of biological databases: Biological Database Links... Library. Each volume focuses on a different organism important
fixing broken relational links in MySQL database after an upgrade
fixing broken relational links in MySQL database after an upgrade  Need help fixing broken relational links in MySQL database after an upgrade
 

 

 

DMCA.com