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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:44:46+00:00 2026-05-28T18:44:46+00:00

What am I doing wrong here? I cannot get the sprites to work correctly.

  • 0

What am I doing wrong here? I cannot get the sprites to work correctly. When I inspect the element it is not the right height or width. I have gotten sprites to work having a container div with the background image, but I don’t think having a wrapper is correct in this type of situation.

Here is what I’m trying to do..

<html>
<style>
.bottomtable{display:block;}
.bottomtable .close {float: right;margin-right:5px;margin-top:25px;display:inline;position:relative;background-image:url('http://www.freeimagehosting.net/o2gz4');background-position:-278px -18px;height:7px;width:7px;}
.bottomtable .close a {height:7px;width:7px;}
.bottomtable .titletext{text-align: right;float: right;margin-right:5px;margin-top:-20px;display:block;}
.bottomtable h5{margin:0;padding:0;font-size: 14px;font-weight:normal;display: inline;}
.bottomtable ul {display:block;padding:5px;margin:0;}
.bottomtable li {list-style-type:none;padding:10px;margin:0;height:75px;display:block;}
.bottomtable li a{text-decoration:underline;font-weight:bold;display:block;margin-bottom:5px;}
.bottomtable li a span{display:block;text-decoration:underline;font-weight:bold;margin:2px 0 4px;}
.bottomtable ul img {display:inline;float:left;margin-top:-2px;margin-right:20px;}
</style>
<body>
<div class="bottomtable">
<ul>
    <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>                        </li>
    <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>
    <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>
    <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>

</ul>
</div>
</style>
</html>

`

All you can see is a small portion of the X.

If I don’t put that blank space between the link, it doesn’t show anything at all… There has to be something I am just doing wrong. What is it? I have inspected tuns of sites and they don’t seem to need that space in there.

  • 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-28T18:44:47+00:00Added an answer on May 28, 2026 at 6:44 pm

    This thing works. Please check with this:

    <html>
       <style>
         .bottomtable{display:block;}
         .bottomtable .close {background-image:url("http://www.freeimagehosting.net/newuploads/o2gz4.png");background-position: -278px -18px;color: #FFFFFF;display: inline;float: right;height: 10px;margin-right: 5px; margin-top: 10px;position: relative;width: 11px;}
         .bottomtable .close a {height:7px;width:7px;}
         .bottomtable .titletext{text-align: right;float: right;margin-right:5px;margin-top:-20px;display:block;}
         .bottomtable h5{margin:0;padding:0;font-size: 14px;font-weight:normal;display: inline;}
         .bottomtable ul {display:block;padding:5px;margin:0;}
         .bottomtable li {list-style-type:none;padding:10px;margin:0;height:75px;display:block;}
         .bottomtable li a{text-decoration:underline;font-weight:bold;display:block;margin-bottom:5px;}
         .bottomtable li a span{display:block;text-decoration:underline;font-weight:bold;margin:2px       0 4px;}
         .bottomtable ul img {display:inline;float:left;margin-top:-2px;margin-right:20px;}
    </style>
    <body>
       <div class="bottomtable">
         <ul>
            <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>                                  </li>
           <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>
           <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>
           <li><h5><a href="#">some title</a></h5><a href="javascript://close" class="close" title="">&nbsp;</a>this is some text here..............<div style="clear: right;"></div>    </li>
    
         </ul>
       </div>
     </body>
    </html>
    

    Your background image path is wrong.You have to specify the complete image url which is http://www.freeimagehosting.net/newuploads/o2gz4.png

    Hope this helps

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

Sidebar

Related Questions

I am not sure what i am doing wrong here. I have a class
Ok, what the heck am I doing wrong here.. System.TypeLoadException: Cannot marshal field 's2'
What am I doing wrong here? I'm trying to get started with jQuery UI
Alright I'm sure I'm doing something wrong here but I cannot for the life
I cannot see what I am doing wrong here. Simply put, I want to
I cannot see what I am doing wrong here. Here is the code I
What am I doing wrong here? My use of the INTO clause seems to
What am I doing wrong here folks? <?php include 'header.php'; /** * Display a
What am I doing wrong here: class Helo { // main: generate some simple
What am I doing wrong here? I'm serializing a value, storing it in a

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.