473,387 Members | 1,890 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,387 software developers and data experts.

Re: How to override the style of a pseudoclass (a link)?

On Fri, 25 Apr 2008 18:22:34 +0200, Andreas Prilop
<pr********@trashmail.netwrote:
>Then give us the address (URL) of your web page!
The "live" page is not publicly accessible, but in connection with
another problem, I have posted a simplified version at
http://www.amphigoricbooks.com/dummy/About.htm. All of the
stylesheets are there.

The problematic link is in the menu bar between "Store" and "sign
up...". To find it in the source, search for the string "Log Out".

This particular link will be replaced by an image consistent with the
other menu bar items, but the site will have plenty of other text
links which will stay, and they all are subject to the same problem.
Jun 27 '08 #1
2 1676
Jonathan Sachs wrote:
>
The "live" page is not publicly accessible, but in connection with
another problem, I have posted a simplified version at
http://www.amphigoricbooks.com/dummy/About.htm. All of the
stylesheets are there.

The problematic link is in the menu bar between "Store" and "sign
up...". To find it in the source, search for the string "Log Out".

You have
#bldHeaderMenuLink a, #bldHeaderMenuLink a:link,
#bldHeaderMenuLink a:active, #bldHeaderMenuLink a.visited {
color: white;
}

but you do not have

#bldHeaderMenuItem a, #bldHeaderMenuItem a:link,
#bldHeaderMenuItem a:active, #bldHeaderMenuItem a.visited {
color: white;
}

Compare with your markup.

You also have:
1) validation errors in markup and CSS

http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

2) lots and lots of rule sets in the CSS. 7 count 'em 7 files

3) filespecs with apparent variables for CSS files

"node.css?u", "defaults.css?u", etc.

4) CSS rules marked as IE-only which are really IE6 and under

/* Note: IE-only fix due to '* html'. */
* html.js fieldset.collapsed legend,

5) XHTML instead of HTML, served as text/html anyway

6) Some apparent dependence on Drupal. This probably is the main cause
of items 1-5 above.

GL

--
John
Pondering the value of the UIP: http://improve-usenet.org/
Jun 27 '08 #2
On Sun, 27 Apr 2008 00:14:18 +0200, John Hosking
<Jo**@DELETE.Hosking.name.INVALIDwrote:
>You have
#bldHeaderMenuLink a, #bldHeaderMenuLink a:link,
#bldHeaderMenuLink a:active, #bldHeaderMenuLink a.visited {
color: white;
}

but you do not have

#bldHeaderMenuItem a, #bldHeaderMenuItem a:link,
#bldHeaderMenuItem a:active, #bldHeaderMenuItem a.visited {
color: white;
Thank you! That's the sort of thing that a person can stare at in his
own code forever and not see.
Jun 27 '08 #3

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

Similar topics

1
by: David Bradbury | last post by:
I may be thinking about this the wrong way, but here goes: In my style sheet I've specified that bullet points should use a specific image rather than just be default bullet points. However, at...
4
by: Laiverd.COM | last post by:
Posted this in the MM Dreamweaver group also, but then found this newsgroup, in which I hope someone knows the answer What I'd like to do is define a specific style for a link that is in a...
2
by: Showtime | last post by:
Hi. I want to know if it's possible to override the definition of a CSS pseudoclass (for example, a hover) with the style attribute of an HTML tag. If it's possible, what is the syntax? Thanks...
1
by: Vaclav Jedlicka | last post by:
Hi I need a datagrid on a page, but it is rendered with the style "border-collapse:collapse;". I do not need this style. It interferes with the settings in my CSS file. I tried to supress it...
0
by: cedoucette | last post by:
I just wrote code to support sortable columns in a datagrid. It seems to work fine; but, it doesn't look right. The problem is that I have a generic style for links and a different style for the...
5
by: Doug Lerner | last post by:
This looks like the group where people post messages about AJAX/Prototype. Please point me to a more appropriate group if I'm wrong! :) ------- In a project I am working on using Prototype, I...
2
by: ad | last post by:
I use vs2005 to develop web application. I have used the new feature of master page of VS2005, and I have put some <stylein the master page. But I want to override some Style sheet in the content...
2
by: mjansen.merge.emed | last post by:
Is there a way to override inline within the <bodya style of an element but not do it with a style attribute on the element? I know CSS Inheritance works for some styles, but doesn't appear to...
2
by: David W | last post by:
I need to include a style sheet link in the aspx page based on what user they are. Basically this functionality, but using code behind. Any idea how to change this line to code behind? This...
1
Fary4u
by: Fary4u | last post by:
using asp while condition how can i write perticular link as a selected value ? <a class="mainlevel" href="p.asp?strCat=<%= strcat%>"> <%= strcat %></a> using CSS style sheet
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.