Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 810173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:50:34+00:00 2026-05-15T00:50:34+00:00

I have a complex background image and images, that should be on exact positions

  • 0

I have a complex background image and images, that should be on exact positions of the background image.

How can I organize web page?

I can’t use absolute positions, because I need to organize background to view it nice on any monitor, any resolution and any browser. It can be aligned to center or smth else.

Web page can be written just with Javascript or with a library like JQuery.

Here’s an example of what kind of web page according to background image and images organization on it I’d like to have.

http://desandro.com/portfolio/

(background picture and points on it)

Thanks in advance.

EDIT

I’ll add my answer in comments to the question.

Background will be a set of circles as matrix (m*n), taking an image(one circle) and repeating it on the page or it would be one background image with all this circles on it. But some of this circles should be separate img, not in the background part, so user could click on them, but he should not fill any difference, as if all circles are of the same type, just some of them click-able. If I could arrange it, so buttons could randomly change, it would be great. Hope, I explained all clearly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:50:34+00:00Added an answer on May 15, 2026 at 12:50 am

    I think you need to take a different look at how to approach this, some of the points in your question seem misguided.

    If it is a portfolio design, like the one linked, then you need to be aware of 2 things:

    1. The website screenshot is content, not presentational. People come to your portfolio to see what you have done, it is important that you know the different between a HTML img (content) and a background-image (presentation).
    2. If you have the images scale they will look terrible at the varying resolutions. If you stretch the image or reduce it’s size it will distort the image, which is not so nice to see on a portfolio. I advise you be pragmatic and opt that your images be a fixed size, which will also help in adding your hotspots on top of the image. This is how the author of the linked portfolio has approach things, with an additional background image to split the page up nicely.

    Another thing to note is that the linked example uses canvas for drawing the points due to the lines connecting each one. Canvas makes this easy by being dynamic but is not supported in IE without the use of plugins. However, if you don’t need to change these points very often then you can achieve a similar effect with just images and CSS.

    The rest of this answer assumes you are using HTML4/XHTML. The linked example uses HTML5 (incorrectly in places), but without a specific requirement to use this technology I am assuming you are not using HTML5.

    To start, consider each image and notes as a standalone block of content, contained in an individual div. As mentioned previously, the screenshot is a content image and should have it’s own img tag. I’d also argue that the notes are a list of specific points, so they should be marked up as such.

    <div class="article">
      <div>
        <img src="my_screenshot.png" alt="Appropriate alt text here" />
        <ul>
          <li class="note1">Here is an interesting part of the image</li>
          <li class="note2">This is also interesting</li>
          <li class="note3">Look at this! Pretty cool huh?</li>
        </ul>
      </div>
    </div>
    

    Mark-up: done. You can use this for each piece and simply replace the content as appropriate. If you think the order of the points is significant, replace the ul with an ol.

    Next you want to think about the CSS. This will only be the basics to get you started, it should be enough to point you in the right direction. You need to set div.article to be positioned relatively in order to allow absolute child elements to be positioned relative to the top-left corner of that particular entry. Also set the wrapper div width, height and center it (also set the img dimensions). Finally, you need to prepare the li notes for positioning.

    .article {position:relative}
      .article div{position:relative; width:800px; height:600px; margin:0 auto}
        .article img {display:block; width:800px; height:600px}
        .article ul,.article ul li {position:absolute; list-style:none; top:0; left:0; margin:0; padding:0}
        /* Debug styles */
          .article ul li {height:20px; width:20px; background-color:#ff0000}
    

    Now it is just a case of plotting the points for each li. Use your image editor to work out the top left position (in pixels) of each point, then set each li.noteX as appropriate.

    .article ul li.note1{top:156px; left:89px}
    

    This should be enough to put you on the right path. Once you get your head around this you can start adding background-images for the notes and any JavaScript to add tooltips and so on. As for using multiple entries on a page, give each div.article a unique id and use that to target the li more specifically.

    EDIT: Live example with a tiny bit of JS to show hovers. Excuse the lack of actual images, the horrid colours should be enough of a visual 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, a little background. I have two ASP.NET web applications that use SQLServer session
I have built a web page that does a complex processing, and I realized
I have built a C# .net web service that takes a complex type as
I have a complex .NET Remoting server app that provides a couple of services.
I have a complex command that I'd like to make a shell/bash script of.
I have some complex stored procedures that may return many thousands of rows, and
I have a 'complex item' that is in XML, Then a 'workitem' (in xml)
I have a complex layering situation for the website: http://andstones.ca/contact/ where I use a
Background I have two services that need to communicate with each other over a
i'm creating asmx web service and have to create thread to do background IO

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.