Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    411
    Plugin Contributions
    0

    Default 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

    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.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

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

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default 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.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    411
    Plugin Contributions
    0

    Default Re: element.style mystery css ( cross sell snafu in IE)

    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... sheesh I know I'm not the first nor the last but dang!

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

 

 

Similar Threads

  1. CSS Buttons
    By theodin in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 21 Mar 2011, 05:31 PM
  2. how to insert css buttons created with CSS Tab Designer 2?
    By lankeeyankee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2007, 08:27 PM
  3. Upgraded, now need to get CSS buttons back
    By stevensmedia in forum Upgrading from 1.2 to 1.3.x
    Replies: 1
    Last Post: 30 Aug 2006, 02:15 AM
  4. Inline css or separate file
    By gilby in forum Contribution-Writing Guidelines
    Replies: 6
    Last Post: 6 Jun 2006, 04:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •