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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:24:32+00:00 2026-06-17T16:24:32+00:00

I would like to have one div with two images. One is centered on

  • 0

I would like to have one div with two images. One is centered on the page and the other is all the way to the right.

I tried adding ‘align: center’ to the div, this centers the image fine. now when i add the other image and apply this: ‘float:right’ the second image moves slightly to the right. So right now its being centered between the image and the left side of the page and not the whole page.

<div class="navigator" id="basket_status2" align="center">

<a href="javascript:void(0);">
<img src="images/icon/check-out_empty.png" border="0" alt=""></a>


<span style="float: right; ><a href="javascript:history.back();">
<img src="images/back_button.png" border="0" alt="" /></a></span>

</div>
  • 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-17T16:24:33+00:00Added an answer on June 17, 2026 at 4:24 pm

    No need to deal with floats. Just position the buttons to your liking:

    .navigator {
        width            : 100%;
        height           : 20px;
        background-color : yellow;
        position         : relative;
    }
    
    .checkout {
        margin   : auto;
        height   : 20px;
        width    : 20px;
        border   : 1px solid green;
        position : relative;
        display  : block;
    }
    
    .back_button {
        height   : 20px;
        width    : 20px;
        border   : 1px solid red;
        position : absolute;
        right    : 0;
        top      : 0;
    }
    

    Demo: http://jsfiddle.net/NJsvM/

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

Sidebar

Related Questions

I have two divs. I would like to position one div over the other
I have two divs one inside another, i would like to overlap one div
I would like to have more than one button. I tried to copy code
I would like to have a mapping which maps two string into one string.
I would like to have a div which changes its content on the page
For example I have two div containers like the one below: ^^^^^^^^^^^^^^^^^^<br/> DIV 1
I have three images on a single page and I would like to fade
I have two divs next to each other, one with float: right and the
I would like to have one column in QTableWidget NOT editable. In forums I
I have one web site in IIS, and I would like to have version

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.