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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:09:58+00:00 2026-05-21T15:09:58+00:00

I would like to do this: <div style=float: left; width: 59px; background: transparent url(‘http://download.com/47.jpg’)

  • 0

I would like to do this:

<div style="float: left;
            width: 59px;
            background: transparent url('http://download.com/47.jpg') no-repeat scroll -132px -1px;"
     class="cIconSmall">
</div>

and I’m thinking I should use this:

$("#YourElementID").css({
    float: "left",
    width: "59px",
    background: "transparent url('http://download.com/47.jpg') no-repeat scroll -132px -1px"
});

Any ideas?

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-21T15:09:59+00:00Added an answer on May 21, 2026 at 3:09 pm

    You’re thinking correctly. Using the css(map) method is the way to go.

    $(".cIconSmall").css({
        float: "left", 
        width: "59px", 
        background: "transparent url('http://download.com/47.jpg') no-repeat scroll -132px -1px" 
    });
    

    http://api.jquery.com/css/

    A map of property-value pairs to set.


    Might be nicer as a css class, though… then you can just write $(".cIconSmall").addClass("icon47"); but there’s a time for everything…

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

Sidebar

Related Questions

it would be like this : <div id=map_canvas style=width: 500px; height: 300px;float:left;></div> left:(<=300) top:(<=500)
I have this container div whose width I would like to set according to
I would like to set values on an url like this: <a href='http://$data_url/viewyournote.php?chapter='$name_of_chapter'&note='$id_note'&user='$username'> Then
<div id=carat_weight_right style=margin-top: 15px;float:left;width:444px;border-width:1px 0px 1px 0 ;border-style:solid; border-color:#327B84;padding-top:10px;padding-bottom:33px;*padding-bottom:59px;> <fieldset style=padding-left:20px;padding-bottom:10px;width:415px;margin-top:3px;font-size;10px;> <--- start auto
here is the structure of my html <style> .left { float:left; width: 450px; }
I am using this jquery navigation: http://css-tricks.com/5582-jquery-magicline-navigation/ I would like to have the navigation
I would like to have declaration like this: void Date::get_days_name(const Date& = this) which
I would like to do something like this i.e., use wild card characters in
I would like do some thing like this: SELECT sum(quantity) FROM orders WHERE order_code
I would like to send a html string with a GET request like this

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.