Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Firefox not displaying correctly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-21-2009, 06:59 AM
 
buyfroma buyfroma is offline
 

Member
  
Join Date: Apr 2009
Posts: 10
 

Default Firefox not displaying correctly

I'm trying to modify the main.css to change the link, visited, hover and active selectors for the search-sort-bar. By default they take the style of each of those selectors specified for the main site since not styles are specifically specified for the search-sort-bar.

Here is the default unmodified code:

a.search-sort-link:link,
a.search-sort-link:visited,
a.search-sort-link:hover,
a.search-sort-link:active

Here is the code modified by me:
a.search-sort-link:link {color: #ffffff},
a.search-sort-link:visited {color: #ffffff},
a.search-sort-link:hover {color: #000033},
a.search-sort-link:active {color: #ffffff}

It displays 100% correct in IE, but Firefox still inherits the site colors specified at the top of the main.css.

Any ideas on how to get Firefox to display it correctly or any errors in my code? Thanks in advance!
__________________
X-cart Pro 4.2.0
Reply With Quote
  #2  
Old 04-21-2009, 12:38 PM
 
buyfroma buyfroma is offline
 

Member
  
Join Date: Apr 2009
Posts: 10
 

Default Re: Firefox not displaying correctly

Figured it out. Not sure why, but had to specify text-decoration on each line too to get it to stick in Firefox.

for example:

a.search-sort-link:hover{
text-decoration: none;
color: #cccccc;
}
__________________
X-cart Pro 4.2.0
Reply With Quote
  #3  
Old 04-22-2009, 06:40 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Firefox not displaying correctly

Quote:
Originally Posted by buyfroma
Not sure why
In the first example you posted, the color codes were not closed by ";". This makes the CSS statement invalid. If you had done it like so, for example:

HTML Code:
a.search-sort-link:link, a.search-sort-link:visited, a.search-sort-link:active { color: #FFF; text-decoration: underline; } a.search-sort-link:hover { color: #000033; }
it would probably have worked. In your second example you have correctly closed the statement (every CSS statement has to be closed by ";").
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:30 PM.

   

 
X-Cart forums © 2001-2020