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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:41:48+00:00 2026-05-26T10:41:48+00:00

Having a bit of CSS problem here. First off, my HTML code: <p> <span

  • 0

Having a bit of CSS problem here. First off, my HTML code:

<p>
<span id="tripTitle">Created Trips</span>&nbsp;
<span class="expandicon" style="display:none;"><span class="flip"><img class="expand" src="http://i228.photobucket.com/albums/ee190/micmofo/expand1.png" /></span></span>
<span class="shrinkicon"><span class="flip"><img class="shrink" src="http://i228.photobucket.com/albums/ee190/micmofo/shrink1.png" /></span></span>
</p>

My jQuery code toggles the images.

$(function(){
    $('span.expandicon').click(function(){
        $(this).toggle().next('span.shrinkicon').toggle();    
    });
    $('span.shrinkicon').click(function(){
        $(this).toggle().prev('span.expandicon').toggle();        
    });
})

And lastly, my CSS:

.expand, .shrink { 
    position: absolute;
    right:1px;
}

I want the image to go to the rightmost part of the page but using the current CSS I have, the “shrink” icon stays and so the “expand” icon isn’t seen at all. I’m fairly new with CSS so all I know is by removing the styling, it actually works. So most probably, the problem is with the CSS.

I’ve provided a jsfiddle for those willing to help. http://jsfiddle.net/vfpM5/

Thanks, guys.

  • 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-26T10:41:48+00:00Added an answer on May 26, 2026 at 10:41 am

    Change the CSS to below then work…

    .expandicon, .shrinkicon{ 
        position: absolute;
        right:1px;
    }
    

    also , I added top:50px; to the css so it would be blocked by the jsfiddle result thing.

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

Sidebar

Related Questions

Hey, I'm having some difficulty with CSS and IE6 compatibility. URL : http://bit.ly/dlX7cS Problem
Having a bit of problem debugging my jQuery code... In order to allow hover
My problem is a bit off the cuff here, so I'll try to explain
Having a bit of a problem, Due to the source-control set-up we use, each
Having a bit of a problem creating an instance of an object. Bear in
I am having a bit of a problem. I get a RAW char* buffer
I'm having a bit of a problem. I have a datatable in the parent
I'm having an annoying problem trying to get an html page with a google
I'm having a bit of a problem. I'm using FireFox 3.6 and have the
I'm facing a bit of an odd problem here. I just launched: http://claudiu.phpfogapp.com/ To

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.