473,378 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Weird Link color...

I have a test/mock-up page here:
http://mathxy.com/dev/index.htm

and I've set one link on the dark-blue menu bar
the "Home" link that comes first

and it is blue font, but should not be.

Style sheet is here:
http://mathxy.com/dev/default.css

and this is defined as class "menuitem"

and I have the following definitions in the style sheet:

-----
..menuitem, a.menuitem:link {
color: #CCCCFF;
display: inline;
font-family: Tahoma, "Trebuchet MS", Verdana, Arial, sans-serif;
font-weight: bold;
padding-bottom: 0px;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}
a.menuitem:hover {
background: #9900CC;
color: White;
text-decoration: underline;
}

a.menuitem:visited {
color: #CCCCCC;
}
-----

Yet the link comes out the default HTML blue, harking back to NS3 days.

Earlier in the stylesheet I have these definitions:
-----
a {
text-decoration: none;
}

a:hover {
text-decoration: underline;
background-color: #CC99CC;
color: Black;
font-weight: bold;
}
-----

but that still doesn't indicate why I am getting default link behavior.
I've tested with the plain "a" definitions both before and after the
"a.menuitem" definitions, and same results both ways.

I am also in compliance with the LVHA rule, so am just plain puzzled as to
why the link on "Home" isn't coming out the correct color (which should be
#CCCCFF).
--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/
Jul 20 '05 #1
2 1795
Sheila King wrote:
I have a test/mock-up page here:
http://mathxy.com/dev/index.htm

and I've set one link on the dark-blue menu bar
the "Home" link that comes first

and it is blue font, but should not be.

Style sheet is here:
http://mathxy.com/dev/default.css

and this is defined as class "menuitem"

and I have the following definitions in the style sheet:

-----
.menuitem, a.menuitem:link {
color: #CCCCFF;
display: inline;
font-family: Tahoma, "Trebuchet MS", Verdana, Arial, sans-serif;
font-weight: bold;
padding-bottom: 0px;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}

the <A> does not have the class "menuitem". You have given that class ti the
<DIV>.

try this.... (i have not tested it, but it should work)

..menuitem a, .menuitem a:link {
color: #CCCCFF;
display: inline;
font-family: Tahoma, "Trebuchet MS", Verdana, Arial, sans-serif;
font-weight: bold;
padding-bottom: 0px;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}

..menuitem a:hover {
background: #9900CC;
color: White;
text-decoration: underline;
}

..menuitem a:visited {
color: #CCCCCC;
}
Jul 20 '05 #2
On Tue, 28 Sep 2004 00:00:09 GMT, "Disco Octopus"
<di****************@yahoo.com> wrote in
comp.infosystems.www.authoring.stylesheets in article
<dQ*****************@news.optus.net.au>:
the <A> does not have the class "menuitem". You have given that class ti the
<DIV>.

try this.... (i have not tested it, but it should work)


Thanks, that tip gave me the clue I needed to get it to behave the way I
want.

Much appreciated,

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
7
by: LRW | last post by:
Below I'll paste my CSS and the HTML in question. But what's happening is, I'm trying to establish a link behavior for a class that's separate from the normal link class. I've established a: 's...
3
by: jpastora | last post by:
I'm having a strange problem with our email links on the domain : http://www.pc350.com/ . The problem is that when you click on an email link, the email app is not launched until the browser...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
1
by: Dees | last post by:
Hi, I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my ASP.NET application. Here is the scenario - 1. I have a menu page (Default.aspx), which has the following anchor -...
7
by: JJ | last post by:
Dear all, I have this weird problem on the website I maintain.... A few visitors seemed to be unable to XS the website. It has a front image, with a link underneeth it saying: click here to...
4
by: Mark | last post by:
Hi.. I changed some of my CSS, and now I get this strange problem in IE. See link: http://xailus.com/files/sample.gif. Left is firefox, what it should look like, right is IE. The footer even...
14
by: Daniel Kaplan | last post by:
So my style sheet has many different types of LINK styles. And they all work fine on IE, even different styles on the same page. But in Firefox, all link throughout my site all follow JUST the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.