Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 8th, 2006, 03:30 PM
Registered User
Join Date: Oct 2005
Location: Melbourne, FL, USA.
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
Reply With Quote
  #2 (permalink)  
Old February 8th, 2006, 03:46 PM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts

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.

Reply With Quote
  #3 (permalink)  
Old February 10th, 2006, 07:52 AM
Registered User
Join Date: Feb 2006
Location: London, London, United Kingdom.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

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".

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:36 PM.

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