Is it possible to make this texture in pure css?
See this also for texture: http://dribbble.com/shots/70256-Background-Textures
Assuming that you don't care about supporting older browsers, you can do this:
body {background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAACcCAMAAAAu7ofdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtlQTFRFbnB2bW94bG50cHJ4bnF6a212cHN8c3V7dXd8c3Z+aGpzdXiAamxyb3F0d3l+bW9yZ2lyd3qCeXuAdnh7aGpwZWdwe32DZ2hteHl9eXyFb3F3bW91cnR6bnB5Y2VtbG53bW93e36HdHZ7bG52bnF5bW92cXN5cXR8dHd/bG51b3J7cnV9foCGb3J6YGNrbXB4dHZ8cnR7bnB3aWt0b3F4cXN6cHN7a211a21zb3J5bnF4dHZ9dnmBf4GHc3V8bXB3a210dXd9cHJ5cnV8bnB4cXN4cnR5amxzaWtzenyCb3F1c3Z9fX6BcXR9dnh9foGKdHd+cHN6b3F2fn+DcHJ2cXR7eHp/ZWZsdXd7dXd6aGpycnV+b3F5aWtxbnB0bnB1cHJ6bW90c3V6amx1dXh/cHJ3bXB2XWFpdnh+aWtyeHqAZmhxcHJ1gYOKd3l/bG5zaGpxcXN7bnBzZ2luc3V5bnF3bW9zamx0c3V9XGBodnh/dXh+cnV7dXd/b3J4cXR6cXN8b3F6dHZ6g4WMcnR8dHd9dniAdnh8dHeAcnR4ZGZudnmCeHuEZWZqfH6Ff4KMdnmAdXd+cHN5dHZ5gIKGaGpvdnl/dXh9d3mAaGlyaWtwe32Eb3J2d3h8Z2lxdHZ+c3Z/amxxWlxlfH6Ea21yeXuBd3l8eHuDd3qDcXN3ZmhwZmhvc3Z7cXR5cXN2bG5yd3qBcnV5bG9zen2DdXiBenuAd3l9Z2lvcHJ7dXZ6c3Z8bXB0fH2Cdnd7dHd8b3J1ZmhueXp/d3p/Z2huZGZtbXBzeHp+en2FfX6Ce32GXWFogoSNfYCKcnN4eHqBcXJ3dHZ/enyBc3R3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AAAAAElFTkSuQmCC')}
It's "pure CSS", right? =D
See: data URI scheme
Edit:
Looking at the comment you left on Evan Mulawski's answer, here is the decoded PNG of my base64 string:
I just copied a portion of the image you provided in your question. It doesn't tile 100% seamlessly, but it looked "good enough" for posting inside a base64 string noone would ever look at.
body {background:url(background.png)}
Depending on how the texture works, you might be able to do it by creating an insanely large number of positioned <div>s with borders in various shades of gray.
Don't.
You can't do that in CSS. You need to make an image and repeat it on the background.
http://vandelaydesign.com/blog/design/photoshop-tutorials-textures/
The best way is to set the background image property using a tiled image.
Filter Forge (filterforge.com) has a filter library. See if you can find a suitable image there, then use repeat-x and repeat-y for a seamless background.
Related
Supposing that I have a polygon image PNG file like this (No border, the shape is filled with one color, no gradient, and background of the image is transparent) http://www.enchantedlearning.com/crafts/books/shapes/gifs/4.GIF
I'm thinking of using that polygon image as a background image and it will be changed (to another image with different color) when the user hovers on it.
But I also want the color of the background image to be customizable. So, I'm thinking if there is any possibility to draw the polygon instead of using image files so that the color will be customizable (I don't think it's a good idea to create one file for one color and so on so forth).
What is the best solution for this case? Using png or drawing it by css?
Is there a tool/website to convert my png to css code?
Make the white areas transparent (colour to alpha in GIMP)
Convert the image to a data URI (it's optional but it will make your site load faster)
Use the url in (2) as the background-image and use any background-color you want.
Use this to convert an image: http://codepen.io/blazeeboy/pen/bCaLE
I think it's much better to use converted images because browsers load them faster.
I think CSS is the wrong thing to use for this. Yes, it is possible to create a lot of shapes using CSS, but there are limitations, and in any case, drawing shapes with CSS is a bit of a hack, even when it's just a simple triangle.
Rather than CSS, I would suggest SVG is the appropriate tools for this job.
SVG is a graphics format for vector graphics that can be embedded in a site, and can be created or altered via Javascript directly within the site. Changing the colour and shape of a simple polygon is about as easy as it gets with SVG.
The other advantage of using SVG is that because it's a vector graphic, it's scalable, so you could display it at any size.
The only down-side of SVG is that it isn't supported by old versions of IE (IE8 and earlier). However, these browsers do support an alternative language called VML, and several good Javascript libraries exist which will work with either, thus allowing you complete cross-browser compatibility. The one I'd recommend is Raphael.js.
So a tiny (and very easy) bit of Javascript code instead of a very messy bit of CSS. Seems like a winner to me.
Maybe u could use this: https://javier.xyz/img2css/, the principle is to use box-shadow,it's fine if the picture is small, so u should consider performance
I am trying to implement a full page background image as discussed here.
I am using the first method, the CSS3 technique. However, when I use background-size: cover like the author suggests, the image is "zoomed" in way farther than it needs to be and I don't understand why.
Is it a problem with the size of the image or do I have something else wrong?
Here is a link to the page.
achievable I want to see the entire tree, trunk and all. I've already tried setting the background-size to "100% auto" and the effect is the same. I've also already tried background-size to "contain" and now the image is too small.
No JavaScript solutions please. I know this achievable with just CSS.
UPDATE
Contain looks good on a desktop site, but it looks bad on a phone/table. Cover looks good on a phone/table but bad on a desktop. I guess I'll use the one that looks the best on each device?
UPDATE
I think I could use contain across the board, I would just have to resize the bg image to be thinner for smaller devices.
I believe we can suffice this requirement by using following two Solutions:
a. Use background-size:100% 100%; I am able to zoom image properly by using this Solution.
b. Use img tag with height and width as 100%
Change background-size: cover to background-size: contain
It looks perfect this way!
Is there a way to create a background like so in css? I didn't know how to describe it so google coudn't help me. Thanks!
You might be able to do it with an SVG image, but be aware that the support could be spotty. It would probably be easier to just create it in Photoshop or GIMP and make it really big (say 1620x1080)
A quick search on CSS and SVG backgrounds came up with this page; but it's from 2009.
What is a good 'image spriting' tool to turn single images into one big sprite with different background-position?
I know about http://spriteme.org/ but it doesn't seem to produce a result as nice as:
goDaddy's or Behance's
I've been doing it by hand for small hovers and icons but doing the entire website would take a while to hand-code all the background-position properties.
Thanks
You can try SASS/COMPASS. Even if you are only using the sprite functionality (called sprite mixin) it is worth using it. There are some nice tutorials like this one.
Mac OSX Finder has a search feature that darkens everything but the part that matches.
(source: justaddwater.dk)
Is there a way to emulate it via CSS? I was thinking about adding a semi-transparent black div with opacity 50. But how then do I cut a hole in it?? and possibly make the edge fuzzy?
Any suggestions?
Check out the Expose jquery plugin from the jQuery TOOLS collection. I think it will accomplish exactly what you are looking for. They even have a demo of styling the mask with a background image.
Due to the irregular shapes, you're probably looking for an image. And due to the need for varying levels of transparency, you probably want a .png that would just be stuck over the selected item.
Good question, one way would be to have a "selected" png that had the glowing circle cover the selected one, and a different just dark png cover everything else.
EDIT: But you would probably want to use a library like jquery rather than coding everything from scrath your self, as to not reinvent the wheel and save TONS of time :D
maybe a PNG image will work, a square with hole