-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sprites are getting a border #153
Comments
Can you provide an example of what you are seeing? |
Closing due to 1 month of inactivity |
Seeing this as well when using img tag; one on the left is img with sprite class; right is img with src. The generated css has the correct width and height and the generated .png sprites file doesn't show any border. .icon-google-drive-transparent { |
Can you upload a gist with example HTML and the generated CSS (preferably only the sprite CSS) so we can reproduce the issue? |
I am getting the same issue @rmevans1 @oneHappyCanuck any luck fixing this? |
@ikosen Can you provide examples of what you are seeing? |
code: sprite:{
all: {
src: "path/*.png",
dest: "path/spritesheet.png",
destCss: "path/css/sprites.css",
imgPath: "../assets/img/spritesheet.png"
}
} The first image is a screenshot of what I am seeing. The second one is the sprite image .icon-banana_PNG842 {
background-image: url(../assets/img/spritesheet.png);
background-position: -700px 0px;
width: 512px;
height: 512px;
} |
Can you upload the HTML/CSS of the page that's being used on? |
Hmm, maybe it's default CSS in Safari. What does it look like in other browsers? |
What's the HTML you are using for the image? |
<!DOCTYPE html>
<html>
<head>
<title>Smiling Banana</title>
<style>
.icon-Mushroom2 {
background-image: url(spritesheet.png);
background-position: 0px 0px;
width: 700px;
height: 700px;
}
.icon-banana_PNG842 {
background-image: url(spritesheet.png);
background-position: -700px 0px;
width: 512px;
height: 512px;
}
.icon-blue_guy {
background-image: url(spritesheet.png);
background-position: 0px -700px;
width: 500px;
height: 500px;
}
</style>
</head>
<body>
<img class="icon-banana_PNG842">
</body>
</html> |
Alright, I have reproduced the error. I tried to remedy it with https://gist.github.com/twolfson/eb4dec3e04ba7bcc006a The border seems to appear only on I think the ideal solution is to remove documentation for |
Thank you. I'll stick to divs myself for the time being. If I can help in anyway let me. I'll be happy to assist |
This has been resolved in |
Hi there, You can check my setup and everything about the project here: https://github.com/lb021/green-unity |
@lb021 try using |
Yeah I did, also need to add property display: inline-block |
@lb021 my bad. 😄 |
It's not specifically a |
When I generate the sprite sheet I am getting a border around the image
The text was updated successfully, but these errors were encountered: