This question already has answers here:
disable subpixel aliasing on html/css borders
(4 answers)
How to stretch images with no antialiasing
(5 answers)
Closed 1 year ago.
I have a problem with anti-aliasing (I guess) in css.
I've seen how to disable it on fonts and images but I'm having troubles with some borders...
Here's the thing, I have a canvas wrapped by two divs, in a grid display. It renders nicely sometimes but with certain levels of zooms, a gray line appears next to borders. I figured out it was because of anti-aliasing but I can't find a way to disable it.
With anti-alliasing
What I would like to be always there
Related
This question already has answers here:
CSS Only Pie Chart - How to add spacing/padding between slices?
(2 answers)
Closed last year.
If possible I would like to create this image in CSS. So far I have not been able to do anything even close to those edges with text. Is it even possible and if so how should I approach it?
To turn your div into a circle you can apply the following property: border-radius: 100% Now if you are asking about the curved text, here is an article that might be helpful: https://css-tricks.com/snippets/svg/curved-text-along-path/
This question already has answers here:
CSS Sprites and repeating backgrounds
(2 answers)
Closed 7 years ago.
Using css sprites for icon-style images is best practice by now and pretty easy.
Using multiple repeating backgrounds in one image is traditionally only possible if they either use only vertical or horizontal repeat.
Or is it? Meanwhile with css3 and html5 and all stuff, is there a way to combine multiple background images in one css sprite to make an background pattern and use vertical and horizontal repetition?
Edit/Note: I know this is not the first time such a question is asked. But most/all answers I found are some time ago. I'm just wondering if there is a solution today.
Edit: To illustrate what I'm looking for: http://ibin.co/21LqyJvnGdMB
Yes you can use css sprites for repeating background.
The rule is pretty simple: if you want the background to repeat
vertically (top to bottom), place the images in the sprite
horizontally (left to right) and make sure the individual images in
the sprite have the same height. For the opposite case: when you want
to repeat horizontally, sprite vertically.
check this article for better understanding. http://www.phpied.com/background-repeat-and-css-sprites/
This question already has answers here:
How do CSS sprites work?
(5 answers)
Closed 7 years ago.
I am examining a website and noticed the following
Consider this navbar
it gets its background images from an image strip, below
How do they extract images from an image strip in CSS? or am I wrong in my interpretation that the images are extracted?
You could use
background-position to show each image in its postion
background-position:-30px 150px;
This question already has answers here:
Creating a Zoom Effect on an image on hover using CSS?
(13 answers)
Closed 8 years ago.
I am making a Gallery for my site. In my site, I am going to have my pictures set out like THIS. But, what I want to know is how to make it zoom in when I hover over it. Not like a magnifying glass, just make the image bigger by 5 to 10%.
Use CSS3 Transform as shown here:
http://css-tricks.com/snippets/css/scale-on-hover-with-webkit-transition/
Also include the -moz-, -o-, -webkit-, -ms- counterparts of transform for browser compatibility.
Using CSS3 Transitions and background-size property using percentages
http://www.w3schools.com/cssref/css3_pr_background-size.asp
This question already has answers here:
Is there a way to make text unselectable on an HTML page? [duplicate]
(16 answers)
How to disable text selection highlighting
(45 answers)
Closed 6 years ago.
I'm trying to make it so certain text and images on an HTML page cannot be highlighted with the cursor, so it appears as if they're a part of the background.
Is there a way to make text unselectable on an HTML page?
First of all if I would like to know the intention behind this. If this is to prevent the user from copying your text and images then I think its impossible for you to make this happen. Once it is rendered to the client browser area then the whole thing comes under the control of the user.
For images not to be highlighted make them as background.
You can also place a transparent div on top of the area where you don't want the selection to occur. Position the div so that they will appear on top of the element with a higher stacking order. For a greater stacking order you can use the z-index property.