Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / element.style mystery css

element.style mystery css

Locked

Views: 8,173

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Jul 2007, 1:27 PM
#1
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

element.style mystery css

of course it is another 'looks fine in Firefox but messed up in InternetExploded'.... I know this might be tough to answer without a URL (localhost) but I thought maybe someone has experience with this...

I've got the cross sell mod working but when I inserted

.centerBoxContentsCrossSell {
padding-left: 1em;
it pushed what I think is the contents to the right - pushing into the right column - while the header stayed put.

FIREBUG* tells me that

centerBoxContentsCrossSell centeredContent back style=width: 100%;
and that
element.style {
width:100%;
but it doesn't tell me where this is coming from - it doesn't have a stylesheet.CSS line reference for that 100% -
I've searched almost everyconceivable stylesheet and related php file looking for '100%' - the only thing I can find set like that is mainWrapper.

Link to jpg showing FIREBUG and partial screenshot:
http://www.wasanajones.com/boxcontentspushed.jpg

any ideas?

THANKS :blink:

PS: anyone not using FIREBUG should rush out and download it -- incredibly useful in figuring out not only the div/class/css mysteries of the universe - but also to ID what is affecting what you see --- hugely useful.

15 Jul 2007, 2:26 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: element.style mystery css

Is that "style=width: 100%;" an inline style, generated in the php file and not a stylesheet?
The output you show indicates that it is inline.

15 Jul 2007, 2:32 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: element.style mystery css

Glenn is spot on. element.style in Firebug indicates that the style has been applied directly to element as an inline style rather than via a stylesheet.

15 Jul 2007, 3:11 PM
#4
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: element.style mystery css

thanks - that was what i had been thinking - I searched for 100% in the cross-sell related PHP files but that 100"%" is generated...

in xsell_products.php I found the code that generates it

of course I have to share the stupidity award because I edited the file and it didn't change...then I thought "when in doubt edit it out"... when it still didn't change I went looking for the duplicate file.... after about 45 minutes of trial and error it dawned on me that I was editing the original download and not what I had in my custom template... :blush: sheesh I know I'm not the first nor the last but dang!:yuck:

changed 100 to 90 and all is good with the world
THANKS