Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how do I add images using absolute positioning

    That should work, as long as there is something inside the div to give it size. What is the entire div content you had? Can you put it back so I can take a look?

  2. #12
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do I add images using absolute positioning

    Well that's probably what is wrong then since I just barely understand how this works. Kind of a newbie.

    That was the entire content of the div. I just added that to the end of the define page editor/ index page just like that. Just the css code that I had shown and the <div class="sticky"> in the page
    Best Regards,
    Scott
    My test site

  3. #13
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I add images using absolute positioning

    You have nothing in the sticky or in the stylesheet.

    Except for 16 <br> tags!
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #14
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do I add images using absolute positioning

    Well I just checked and all the way at the bottom of the index_home.css I have the code that I posted above
    Code:
    #sticky {
    	background-image: url(../images/sticky.png);
    	position:absolute;
    	left:168px;
    	top:143px;
    	}
    In the define main page I have towards the top of all those </br>'s the <div class="sticky"> and oh dang. I just realized that even though I don't know what you mean I should be putting into the sticky I don't even have an end </div>
    Best Regards,
    Scott
    My test site

  5. #15
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I add images using absolute positioning

    That will not load.
    Should be in stylesheet.css or something like stylesheet_home.css or it won't load.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #16
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do I add images using absolute positioning

    Ok I'll try and rename the template but that is what was told to me to do in another post and it seems to be working for everything else.
    Best Regards,
    Scott
    My test site

  7. #17
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I add images using absolute positioning

    The index_home.css and the regular stylesheet.css (neither is a template) are butting heads and if you use firebug you'll see that the background image never shows up.
    You might try the .jpg fix mentioned earlier. If you are using png for transparency, it just doesn't work well enough to try.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #18
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do I add images using absolute positioning

    Sorry, Mistake on wording. I meant change the name of the stlyesheet index_home.css. I did rename the image to jpg and in the css as well just now. Did it earlier but when I added it back in later I forgot to change it again.

    The reason that the stylesheets are butting heads are probably because I didn't do what was suggested and just add the edits I made to the original stylesheet. I just used the whole stylesheet and renamed it. I was planning on going through that later and deleting all the stuff that wasn't changed out of the index_home.css
    Best Regards,
    Scott
    My test site

  9. #19
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how do I add images using absolute positioning

    <div class="sticky">

    #sticky {

    # is the symbol for an id, not a class. You need to either change that to . or change class= to id=.

    .sticky {

  10. #20
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do I add images using absolute positioning?

    Thanks for the info. I tried it again with no luck. I knew that the two were different but didn't know which one was for what. I tried it with both id and class and nothing shows. I even tried them both with different left and top coordinates. Here is what I am using
    Code:
    .sticky {
    	background: url(../images/sticky.jpg);
    	position:absolute;
    	left:168px;
    	top:43px;
    	}
    With this I am using <div class="sticky"></div>
    Best Regards,
    Scott
    My test site

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Absolute Positioning of Login and Account Links in Header
    By bsteinagel in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Mar 2009, 11:01 AM
  2. How do I add extra images to a product using javascript
    By southernlady in forum General Questions
    Replies: 8
    Last Post: 14 Jan 2009, 08:26 PM
  3. Absolute positioning of video on define pages
    By Visionvek in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Jul 2008, 03:26 PM
  4. absolute positioning inconsistent in firefox and IE (TABS PRO)
    By james739 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Jul 2008, 03:22 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