Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Problem with Stylesheet on FireFox"


nuclearsummer1

Recommended Posts

Posted

I need your help boys,

 

My stylesheet working fine on Internet Explorer but on ForeFox its not working (implementing styles).

 

Advanced Thankyou for your time and cooperation.

Posted
I need your help boys,

 

My stylesheet working fine on Internet Explorer but on ForeFox its not working (implementing styles).

 

Advanced Thankyou for your time and cooperation.

 

What exactly isn't working?

 

If you can give me some code samples and what the problem is with URL's(if possible) then i can see what i can do.

Posted
What exactly isn't working?

 

If you can give me some code samples and what the problem is with URL's(if possible) then i can see what i can do.

 

Sample code is as under:

 

(1). Its code in stylesheet

 

TD.smallText {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;}

 

(2). Its link in index page between <head> is as

 

<head>

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

 

(3). Its call in <td class="smallText"> is as

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

 

 

This stylesheet code and all other code in this stylesheet working nice in Internet Explorer

 

BUT (for example) when i testing this is FireFox Browser its not implement the class="smallText" font styles.

 

This is the my Quey boys.

 

please help me, i will appreciate your cooperation.

 

Thankyou.

Posted

have you got a link that i can see this?

 

there is a few things you can try to solve this. but what you have should be working fine. So unless something is conflicting.

 

have you tried creating a new class not part of TD and put it in <span> around your text and see if that works just as a test.

 

But otherwise give me a URL to look at the page that is not working.

Posted
have you got a link that i can see this?

 

there is a few things you can try to solve this. but what you have should be working fine. So unless something is conflicting.

 

have you tried creating a new class not part of TD and put it in <span> around your text and see if that works just as a test.

 

But otherwise give me a URL to look at the page that is not working.

 

As you suggest i make a new class in stylesheet for testing and call it in <span> around my text BUT same problem its

 

works for Internet Explorer but not for FireFox.

 

My site is not online now so i cant provide the link (URL) of my site.

 

Is there a different method of calling a stylesheet for FireFox.

 

I would appreciate your help and guidence.

 

Advanced Thanks.

Posted

In your table, there may another css declaration that is over ridding it - try putting !important on your CSS - usually the problem is the other way around, everything work great on firefox but not in IE!

 

OR

 

I would take the TD.smallText and place it farther down in the CSS file - sometimes that works -

 

also just in case, make sure your css looks similar to this

 

TD.smallText, SPAN.smallText, P.smallText {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 10px;
}

 

you don't need the other SPAN or P, just as an example. But, see how my last '}' is after everything - css fails very easily in quirks mode. Which you are probably in, if the doctype isn't exactly what firefox is looking for.

 

I just could not tell if that was a typo or if that was copied code. Just to make sure it isn't something odd.

 

If none of this works, you probably have a problem with the way you are building it.

Nothing unreal exists

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...