Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2006, 03:30 PM
Registered User
 
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bookmark Style

I have a menu set up on my eBay AboutMe page.

This is the Style that I have:

a.white { color: #FFFFFF; text-decoration: none; font-weight:bold }
a.white:link { color: #FFFFFF}
a.white:visited { color: #FFFFFF}
a.white:hover { color: #FFFFFF}
a.white:active { color: #FFFFFF}

I works fine on the second line of my menu (which links to external pages) but the first line of the menu links to bookmarks on the current page.

<td class="td5"><a class="white" href="#AboutMe">About Me</a></td>
<td class="td5"><a class="white" href="#CJMGraphics">About CJM Graphics & Photo Restoration</a></td>
<td class="td5"><a class="white" href="#Payments">Payments</a></td>
<td class="td5"><a class="white" href="#Policies">Policies</a></td>
<td class="td5"><a class="white" href="#Communications">Communications</a></td>

The problem is that the '#' seems to be overriding the Style instruction and the default color disappears in the the background that I am using.

This doesn't happen in Netscape or Firefox but it does happen in IE 6.

Any thoughts....


Terry Migliorino
[email protected]
 
Old February 8th, 2006, 03:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I'm not too familiar with eBay, but I think "your" page is just a part of "their" page, is that right? If so, maybe their style rules override yours.

Could you show the page? Would make it easier to trouble shoot.

--
http://yupapa.com
 
Old February 10th, 2006, 07:52 AM
Registered User
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it is the case that the styles are being overridden then using the !important rule could be a solution. http://www.w3.org/TR/REC-CSS2/cascad...mportant-rules

Incidentally try to avoid class names that are descriptive of style i.e. class="whiteBold" and try to make them descriptive of the class function i.e. class="menu".







Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate bookmark creation hogg Word VBA 1 November 12th, 2008 04:35 AM
Help with bookmark code on IE7 bvis Java Basics 0 December 16th, 2006 10:15 AM
Me.Bookmark = Me.RecordsetClone.Bookmark rkellogg Access VBA 5 September 8th, 2006 06:28 AM
iframe bookmark problem reberman Javascript How-To 0 December 20th, 2005 12:38 AM
difference between style.visibility and style.disp Mimi Javascript How-To 6 September 17th, 2003 11:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.