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 8968965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:31:41+00:00 2026-06-15T17:31:41+00:00

ATTENTION! PROBLEM SOLVED, SOLUTION PASTED BELOW INITIAL QUESTION on the very top of web

  • 0

ATTENTION! PROBLEM SOLVED, SOLUTION PASTED BELOW INITIAL QUESTION

on the very top of web page Im working I have on to the left corner a flag (to change language) which I have in a div. On the right I have another div for another image (shop cart) but since I floated the right div, I still go to the right divs address when clicking on the left, like the right overrides the let one. Why? How can I solve this?

Also, I am doing this by using my html/css-files and editing them to fit wordpress for a customer.

CSS

#topmenu img {
    margin-left: 25px;
    float:left;
    position:relative;
}
#cartmenu img {
    position:relative;
    margin-left: 542px;
}

header.php

 <div id="container">
   <div id="topmenu">
     <a href="http://wwgrgrhbhop.se/indexEU"><img src="wp-content/themes/blank/images/icon_en_global.png" alt="English.png" width="42" height="30"></a>
   </div>
   <div id="cartmenu">
     <a href="http://www.enerfergeggyshop.se/"><img src="wp-content/themes/blank/images/cart.png" alt="cart.png" height="" width=""></a>
 </div>

// SOLUTION Set width (in css) to both elements as well a float:left to both elements, then position with margins to get them where you want.

#topmenu img {
margin-left: 25px;
float:left;
position:relative;
width: 42px;
height:45;
margin-top:15px;
margin-bottom:-10px;

}

#cartmenu img {
    position:relative;
    margin-left: 520px;
    float left;
    width:350px;
    height:40px;
    margin-top:-20px;
}
  • 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-06-15T17:31:42+00:00Added an answer on June 15, 2026 at 5:31 pm

    Try to define a width for #topmenu img and giving the cartmenu a float:left; as well.

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

Sidebar

Related Questions

I have a very strange problem, which took already several hours of my attention:
Hi and thanks for your attention. First some background on the question: I have
Solved this ages ago, but this question recently got some attention so I'm adding
See edit below which significantly changes the question. ORIGINAL: I'm having a problem rendering
Hello all and thanks for the attention! I have a problem that must both
I have a problem which has received plenty of attention which, despite much googling,
I have a problem. I want to change the black diamond question mark (U-FFFD)
A student in my class brought this to my attention, and I didn't have
I'm developing a site with CakePHP but I have a very basic doubt: When
i am using asp.net with c# web app in vs 2008 problem 1: i

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.