Microsoft
Software
Hardware
Network
Question : CSS Inline Color
All,
I am trying to utilize the following style sheet with a ul list so that the a href links are a pink color - however no matter what I do I can't seem to get this to work. I do have other links on the page but I only want those links in the navlist class to utilize the pink like colors for any kind of link:
Below is the CSS and then the actually snippet of HTML for the li list.
<style type="text/css">
.navlist li
{
width: 135px;
background-color: #9932CC;
padding-bottom: 2px;
A.link:text-decoration: none; color: #ffece7; font-family: Arial;
A.visited text-decoration: none; color: #ffece7; font-family: Arial;
A.active text-decoration: none; color: #ffece7; font-family: Arial;
A.hover text-decoration: none; color: #ffece7; font-family: Arial;
}
</style>
<ul class="navlist">
<li><a href="
http://www.mysite.co
m
">My Site</a></li>
<li><a href="
http://www.coding.co
m
">Coding<
/a></li>
</ul>
Answer : CSS Inline Color
Replace your css with this:
<style type="text/css">
ul.navlist li
{
width: 135px;
background-color: #9932CC;
padding-bottom: 2px; font-family:Arial;
}
ul.navlist li a{
text-decoration: none; color: #ffece7;
}
</style>
- Jayant
Random Solutions
Is there any way to restrict WHERE users can have access to OWA (Exchange 2007)?
Windows Server 2008 to Server 2008 R2 Upgrade
password protected visual basic code for access database
SQL SERVER 2008 - Use a Variable as a Column Name
Me.BindingContext(Me.MEMTb
SQLDataSet
1, "MEMTb").AddNew() - AddNew not working
Sony Bravia screen burn in
Force MsgBox popup when users are logged into XP
Move Mailbox from Exchange 2003 to Exchange 2010
Logon script that will copy the registry from a server share to local machine, then log user off
Setting up mail server on Ubuntu 8.04