Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default CSS Positioning Problem in Safari and Chrome Only

    Hi all,

    I have positioned a currency drop down in my header menu. It appears there in IE8, FF and OPERA exactly as it's supposed to.

    However, in CHROME and SAFARI it is about 80px; further right and overlapping the main wrapper.

    Can anyone see anything wring with the CSS in this positioning using Firebug?

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Quote Originally Posted by limelites View Post
    Hi all,

    I have positioned a currency drop down in my header menu. It appears there in IE8, FF and OPERA exactly as it's supposed to.

    However, in CHROME and SAFARI it is about 80px; further right and overlapping the main wrapper.

    Can anyone see anything wring with the CSS in this positioning using Firebug?
    Well taking a look is not an option as your site is offering me a login auth... see image
    Name:  Image1.jpg
Views: 4934
Size:  40.3 KB


    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    That's very, very strange. Is it still doing this? It isn't doing it to me and I'm still getting sales, so it's certainly not doing it to everyone.

    Can you please try http://www.limelites.co.uk again just to see if it had been some strange glitch?

  4. #4
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Your currency drop down is within a Table cell, then you position a span within that table relative....
    to troubleshoot, I would give the table some CSS styling - borders for example, so you can see whereabouts the table is being displayed in those browsers, maybe all is needed it to control the position of the table with some CSS..

    may be position the whole table relative, not just the span within it...
    ~Steve~

  5. #5
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Hi Steve,

    Do you mean div#dropMenu ul as the table I should be looking at? I'm using the inspect function in Firebug to try and figure out what you mean but I'm pretty hopeless at deciphering code

    What rule would I add to my stylesheet to place a border round the table so I could view it in Safari?

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Site works fine this morning.. that is odd.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  7. #7
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Yeah, that's very odd :-) Glad you can get on now though..... Don't suppose you managed to figure out the strange alignment issue with my currency drop down in Safari and Chrome browsers :-)

  8. #8
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    Your page source has a div that contains a table, which contains the span that your are moving relatively...

    if you can edit your template that includes the DIV to give it an ID, it can be styled with CSS..

    You could try moving the inline style that you have on the SPAN to the TABLE tag...

    Code:
    <div>
      <table align="center">
        <tbody>
          <tr>
            <td align="center">
              <span style="z-index: 3000; position: relative; left: 410px; top: -36px;" id="currency_select">
                ... ... ... ...
              </span>
           </td>
        </tr>
       </tbody>
      </table>
    </div>
    hope this helps...
    ~Steve~

  9. #9
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    OK, so I have this inserted in my tpl_header.php:

    PHP Code:
    <div>
    <
    table align="center">
    <
    tr>
    <
    td align="center">
    <
    span id="currency_select" style=" z-index:3000; position:relative; left:410px; top:-36px;" ></span><br/><span id="dc_box"></span>
    </
    td>
    </
    tr>
    </
    table>
    </
    div
    Should I try change it to this:
    PHP Code:
    <div>
    <
    table align="center">
    <
    tr>
    <
    td align="center" id="currency_select" style=" z-index:3000; position:relative; left:410px; top:-36px;" >
    <
    span id="dc_box"></span>
    </
    td>
    </
    tr>
    </
    table>
    </
    div

  10. #10
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: CSS Positioning Problem in Safari and Chrome Only

    First I would give the Div and Table a vivid background and see if they are positioned differently in the other browsers....

    Code:
    <div id="currencyDiv" style="background:#f00;">
    <table align="center" id="currencyTable" style="background:#0f0;">
    <tr>
    <td align="center" id="currency_select" style="z-index:3000; position:relative; left:410px; top:-36px;" >
    <span id="dc_box"></span>
    </td>
    </tr>
    </table>
    </div>
    I would try the position:relative on the whole table, rather than just the span.

    when all is displaying properly, I would remove the inline styles and put them in the stylesheet.css
    ~Steve~

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Session lost in Chrome and Safari
    By Demon450 in forum Bug Reports
    Replies: 3
    Last Post: 18 Jun 2013, 08:43 AM
  2. v139h Chrome & Safari css layout problem
    By abcisme in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Apr 2012, 10:46 AM
  3. HELP! Weird CSS Issue with Safari and Chrome Browsers
    By limelites in forum General Questions
    Replies: 19
    Last Post: 4 Oct 2009, 07:25 PM
  4. showing strange in chrome and safari
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 May 2009, 05:05 PM
  5. css absolute positioning IE and firefox problem
    By james739 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 18 Jun 2008, 03:32 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