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

Firebug showing main.css styles which aren't there!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2010, 06:58 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Firebug showing main.css styles which aren't there!

Hi, I've been editing a site for a client, and Firebug has started showing styles which aren't in the CSS file it says they are.

For example, I've been trying to edit the 'Checkout' button on the first page of Fast Lane Checkout (the one with the arrow pointing right), and according to Firebug, the following style starts at line 56 of main.css:

div.flc-3-button {
background:url("../../images/but_flc_arrow_right.png") no-repeat scroll right top transparent;
padding-right:30px;


}

But it definitely isn't there, there is no flc-3-button class in main.css.
When I turn off the rule for the background, in Firebug, it turns it off, so it definitely must be coming from somewhere! Has anybody come across this, or is it something obvious that I'm missing?


The HTML that this style applies to is:

Code:
<div class="button flc-3-button" title="Checkout" onclick="javascript: self.location = 'cart.php?mode=checkout'; if (event) event.cancelBubble = true;"> <a href="cart.php?mode=checkout" onclick="javascript: if (event) event.cancelBubble = true;">Checkout</a> </div>
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 07-27-2010, 07:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Firebug showing main.css styles which aren't there!

Fast Lane Checkout has its own main.css - in skin1/modules/Fast_Lane_Checkout
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
Sisom (07-27-2010)
  #3  
Old 07-27-2010, 07:01 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Firebug showing main.css styles which aren't there!

Firebug in that regard cannot always be trusted. If you look, all the classes will probably be on the same line when they're not.

The class you want is in another file, probably altskin.css

edit: or what balinor said, didn't notice it was a FLC class.
__________________
- Shane Munroe
Reply With Quote
  #4  
Old 07-27-2010, 07:03 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Firebug showing main.css styles which aren't there!

Thanks Balinor! How crafty of them! I would have thought that giving it another name, like main_fastlane.css or something like that, would have been a bit clearer!

(One can never expect the obvious with X-Cart!)

Still, having a separate CSS file just for Fastlane Checkout is a good idea, it's easier to work on that one part of the store when you have a smaller CSS file to edit.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #5  
Old 07-27-2010, 07:05 AM
 
jprevost jprevost is offline
 

Senior Member
  
Join Date: May 2009
Posts: 156
 

Default Re: Firebug showing main.css styles which aren't there!

I've always found Firebug very reliable. When it says main.css or whichever css file, make sure you hover over the style sheet name and it should show the actual path.
__________________
Jonathon Prevost

X-Cart Gold 4.2.X &amp; 4.1.X &amp; 4.3
We've worked with a variety of addon modules as well
such as Special Offers, AOM, X-Configurator, X-Magnifier,
Smasher Smart Search, Fedex Modules, CDSEO and many
other Custom X-Cart Modifications.

Sports Training
Hockey Sticks

Reply With Quote

The following user thanks jprevost for this useful post:
Sisom (07-27-2010)
  #6  
Old 07-27-2010, 07:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Firebug showing main.css styles which aren't there!

Yea, never had a reason to doubt Firebug
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-27-2010, 07:43 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Firebug showing main.css styles which aren't there!

Maybe it just hates me
Unless its on localhost, all the classes show as main.php and on the same line. Hovering over doesn't do anything.
__________________
- Shane Munroe
Reply With Quote
  #8  
Old 07-27-2010, 07:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Firebug showing main.css styles which aren't there!

Sounds like you have a bad install - it is a great tool and I have never run into a bug on it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 07-27-2010, 07:57 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Firebug showing main.css styles which aren't there!

Like this:
http://img96.imageshack.us/img96/1601/exa.jpg

On the xcart forums
__________________
- Shane Munroe
Reply With Quote
  #10  
Old 07-27-2010, 08:49 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Firebug showing main.css styles which aren't there!

Hi Tal -
For these forums, Firebug is correctly showing that there is no separate style sheet - the style is in the header of the php file.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
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 06:11 AM.

   

 
X-Cart forums © 2001-2020