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

  • SEARCH
  • Home
  • 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 4038424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:28:16+00:00 2026-05-20T12:28:16+00:00

I have two problems I would greatly appreciate if someone could help me with.

  • 0

I have two problems I would greatly appreciate if someone could help me with.

I’m developing a mobile website with a column of image link elements on the page. I have some problem though, as the picture below describes in blue, the link elements surrounding the image elements bleeds outside and fills the entire div in width.

enter image description here

Markup:

<body>
      <div id="vinranka">
          <img id="vinrankaIMG" src="img/vinrankaCrop.png">
          <img id="vinkattenText" src="img/vinkattenText.png">
      </div>

      <div id="pageFull">

          <div id="searchBox">
              <form id="searchForm" method="post" action="">
                  <div id="searchFieldBg">
                        <input id="searchField" type="text" value="Sök dryck.." name="query">
                        <input id="searchButton" type="submit" value="Sök" />
                  </div>
                  
              </form>
          </div>

          <div id="btContainer">
              <a class="imgLink" href="redWhine.html"> <img class="buttons" src="img/redWhineBt.png"></a>
              <a class="imgLink" href="whiteWhine.html"> <img class="buttons" src="img/whiteWhineBt.png"></a>
              <a class="imgLink" href="sparkelingWhine.html"> <img class="buttons" src="img/sparkelingWhineBt.png"></a>
              <a class="imgLink" href="champagne.html"> <img class="buttons" src="img/champagneBt.png"></a>
              <a class="imgLink" href="roseWhine.html"> <img class="buttons" src="img/rosevinBt.png"></a>
              <a class="imgLink" href="glogg.html"> <img class="buttons" src="img/gloggBt.png"></a>
          </div>

      </div>

  </body>

Edit:
Here’s the CSS:

    html, body {
    margin: 0px;
    padding: 0px;
    background-color: #aed604;
}

#vinrankaIMG {
    position: absolute;
    z-index: 2;
}

#vinkattenText {
    margin-left: 220px;
    margin-top: 10px;
}

#pageFull {
    position: absolute;
    margin-left: 20px;
    width: 454px;
    height: 889px;
    background-image: url('../img/pageFull.png');
    z-index: 1;
}

#btContainer {
    display: block;
    z-index: 10;
}

img.buttons {
    display: block;
    vertical-align: top;
    border: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

a.imgLink {
    margin: 0px;
    padding: 0px;
}

I found a topic with a similar problem where the solution was to add ‘vertical-align: top’ to the image CSS. This however did not work for me, and I’m not sure we even had the same problem.

Another problem is the area described in red. I have an image that overlaps the white background div with z-index. Problem is it overlaps the top image link as well, even when the image link has a higher z-index, meaning it becomes unclickable in the area marked with red. Is the image link locked to be under every element that is above the white background which it is inside of..?

I really hope I have described my problems well enough… =)
If anyone could help me it would be greatly appreciated! I will answer any questions you ask!

Thank you!

/Max

  • 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-20T12:28:17+00:00Added an answer on May 20, 2026 at 12:28 pm

    This actually turned out to be very easy. I simply set the a-element to have the same max-width as the images. Now it doesn’t bleed out any more. For the overlapping I moved the div containing the buttons outside the “pageFull” div and set its position to ‘absolute’. Now I could easily move the entire package of buttons back to its original position just tampering with the margins and it was now no longer overlapped by the top left image.

    Hope this may help someone! =)

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

Sidebar

Related Questions

Hi I would like to start by saying I'd greatly appreciate anyones help on
I am wondering how you would approach this problem I have two Taxrates that
I used pole display(E POS) in my POS c# application.I have two major problem
Problem: I have two spreadsheets that each serve different purposes but contain one particular
I actually have two questions regarding the same problem but I think it is
Here's my problem at a high level: We have two business applications. App1 inputs
Ok I have two modules, each containing a class, the problem is their classes
So. I have a problem where I have two versions of GCC on a
I am working on a business problem in C#.NET. I have two classes, named
Avast there fellow programmers! I have the following problem: I have two rectangles overlapping

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.