Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default help position a sidebox using position:absolute;

    Hi,

    I have positioned a new sidebox using the following code in my stylesheet:
    PHP Code:
    #absolutelinksContent {
    position:absoluteleft:1420pxtop:76px;

    The trouble I'm having is that it displays too far right on smaller screens.

    Position relative is no use to me as the contents move as the side menus become longer.

    Does anyone know how I can get position:absolute; to work on all screens?

    As I'm using this in my stylesheet.css I cannot wrap it in a <div> tag which would normally be the solution...

    Anyone got any ideas?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: help position a sidebox using position:absolute;

    1420px?????
    Which site....
    What coulmn do you have this in?
    Why 1420px?
    What column do you want this is?
    Zen-Venom Get Bitten

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

    Default Re: help position a sidebox using position:absolute;

    Hi Kobra,

    www.dystynction.com

    It's the languages flag widget which on my screen is directly above the Customer Services menu button.... but on my laptop is way off screen to the right...

    My problem is getting the widget to appear in the same position on all screens.

    The inherent position of the widget is inside a custom left sidebox. I had to put it in a sidebox so that it does not appear in SSL pages and cause the dreaded NON SECURE message in IE

    I use 1420px from the left so it appears on the right (I don't use the right sidebox)

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

    Default Re: help position a sidebox using position:absolute;

    I can get this to position perfectly on all screens by setting the position of the NOSSL sidebox to the very top from admin, then using position relative as opposed to position absolute.

    This only causes one very small annoyance, the white space where the box contents would be (before position relative) is still there and it pushes the categories down the page a little too far.

    I've tried setting the height of the contents and the height of the header bar to 0px like this:
    PHP Code:
    #absolutelinksContent {
    height0px;
    position:relativeleft:1020pxtop:-98px;
    }

    #absolutelinksHeading {
    height0px;
    displaynone;

    but there's still a large gap..

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

    Default Re: help position a sidebox using position:absolute;

    OK, solved it eventually buy setting top and bottom padding plus top and bottom margins, all to 0px.

    Now I think I have a pretty nifty widget, right above customer services button on all screen sizes.

    If anyone else would like this NOSSL widget installed on their site, PM message me or post back and I'll try uploading full instructions.

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

    Default Re: help position a sidebox using position:absolute;

    For anyone who would be interested in having this Google languages widget on their site, I have created a mod and uploaded it to the Zen Cart Downloads area. It can take a few days to appear, but meantime, here is a link to the mod.

    http://www.dystynction.com/NOSSL_GOO...ION_WIDGET.rar

 

 

Similar Threads

  1. Absolute Position Shoping cart
    By perfumbg in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Dec 2010, 09:24 PM
  2. IE/Firefox absolute relative position issues (with javascript)
    By ranger_lp in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Nov 2008, 08:31 PM
  3. Position image in sidebox
    By Ahroo in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 5 Aug 2007, 10:28 PM
  4. Re-Position sidebox
    By Xerxes3333 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Aug 2006, 06:15 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