Web Analytics Made Easy -
StatCounter css or javascript to make image appear next to an anchor point? - CodingForum

Announcement

Collapse
No announcement yet.

css or javascript to make image appear next to an anchor point?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • css or javascript to make image appear next to an anchor point?

    I'm reworking a website for somebody. They're using a content management system called squarespace. It's presenting some challenges regarding how content can be presented.

    I have a content area and a sidebar area. In the sidebar, I have rss feeds to link to stories, and I want to have a related image appear in the content area next to the top of each feed. But It can't be a static area because text amounts will change position. I'm assuming I would build it in a div that always appears near an anchor point or something? If it will work in Squarespace's setup of sections.

    Thanks for any help or thoughts!

    ADDED: I tried using float on an image in the sidebar and it doesn't work. The image disappears behind the content area. I don't know how they've built the site, but even z-index at 999999 didn't work.
    Last edited by turpentyne; Aug 25, 2011, 02:21 PM.

  • #2
    try changing the element with the large z-index: to position: relative;

    I would highly recommend uploading the site to a live server, because this type of z-index/positioning problem can usually be solved very easily. if you are not comfortable with a live view, post the entire script (html/css)

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎