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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:03:07+00:00 2026-05-22T22:03:07+00:00

I am trying to display 2 arrow links side by side but am getting

  • 0

I am trying to display 2 arrow links side by side but am getting some css errors.

My html code is below:

 <div>
    <a href="javascript:void(0);" id="move_down"> <span class="down_arrow">&nbsp;</span> </a>
    <a href="javascript:void(0);" id="move_up">  <span class="up_arrow">&nbsp;</span></a>
    </div>

CSS:

.down_arrow{
display:block;
background: url(../images/down_arrow.png) no-repeat left center;
}

.up_arrow{
display:block;
background: url(../images/up_arrow.png) no-repeat left center;
}

Currently, the images are displayed one below another. I want then to be displayed side by side.
However if i remove the display:block; in the css, the image is not displayed properly.

I also tried removing the display:block and put float:left for both classes but still not working.

I would be grateful if someone could provide me with a solution.

Many many thanks.

  • 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-22T22:03:08+00:00Added an answer on May 22, 2026 at 10:03 pm

    To make the images float you have to specify a width of the element and set the float property. The CSS must look like this

    .down_arrow{
    display:block;
    background: url(../images/down_arrow.png) no-repeat left center;
    float:left;
    width:100px;
    }
    
    .up_arrow{
    display:block;
    background: url(../images/up_arrow.png) no-repeat left center;
    float:left;
    width:100px;
    }
    

    See http://jsfiddle.net/fq3Eg/ for your example, I adjusted the CSS and it works.

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

Sidebar

Related Questions

I'm trying to override a CSS class which is used to display an arrow.
I've been trying to display text using a Quartz context, but no matter what
I have an array of Person pocos, populated below. I'm trying display them alphabetically
I am trying to put some asm code into a latex document, onfurtunatly pdflatex
Im trying to display hyperlinks (formated as hyperlink) in a listview row but not
Im trying to display an image upon clicking a JButton but upon execution the
I have a <div id=bread></div> and I am trying to display breadcrumbs where one
Basically I am trying to get some jQuery code to work with elements I
I need some help trying to get floats to display properly in IE. IE
I`m trying to display classes that have properties of type some custom class inside

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.