Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    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
    22,010
    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,569
    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.
    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
    405
    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. v151 Where is element.style to edit? I used developers tool and looked everywhere lol
    By Laidlawgifts in forum Installing on a Windows Server
    Replies: 3
    Last Post: 8 Jun 2014, 05:01 PM
  2. v151 Mystery Red dotted line around field - element.style being pulled from HTML not CSS?
    By the brit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Feb 2013, 09:58 PM
  3. How can i style this element?
    By Ambitions in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jun 2010, 07:09 PM
  4. Changing text style using CSS to override the H1 style
    By NBordeau in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2010, 02:19 PM
  5. CSS Element for Add to Cart CSS button?
    By modernm in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jan 2008, 04:54 PM

Posting Permissions

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