4
votes
2answers
149 views

Cropping images & SEO

So I have a page with a bunch of images with largely varying sizes. Also the layout of the page is such that the images are all in the shape of square tiles, so just resizing will cause distorted ...
1
vote
1answer
145 views

Using a CDN for CMS software (multiple sites)

I'm currently researching ideas for the media management side of a CMS I'm writing. I was looking at having images served from a CDN which is fine on a single site, but I want all sites that run the ...
4
votes
1answer
245 views

What is the best way to optimise a site with lots of images for a Retina display?

I am going to have a website which will deal with a lot of images. What is the best way to optimise them for Retina display without having much of an impact on website loading times? There seems to ...
-1
votes
1answer
1k views

How to retrieve an image from MySQL database and display the image as background on body? [closed]

How do I retrieve an image from MySQL database (I know how to display image by retrieving from database but here i want to display differently) i.e. display the image as background on body and image ...
8
votes
3answers
2k views

Directory structure for a website (js/css/img folders)

For years I've been using the following directory structure for my websites: <root> ->js ->jquery.js ->tooltip.js ->someplugin.js ->css ->styles.css ...
3
votes
0answers
205 views

CSS rounded corners around image [closed]

I have tried several ways to get rounded corners around images without success. The best I got was using the image as background and applying the round corners style to the div as in this picture. ...
35
votes
4answers
5k views

Why do big sites host their images/css on external domains?

Why do big sites (Facebook, Twitter, Google, Tumblr & so on) host their images/css on external domains? Facebook: http://static.ak.fbcdn.net/ Twitter: http://a0.twimg.com Google: ...
6
votes
3answers
478 views

Best semantic structure & SEO optimised approach for image replacement for badges?

In the past, I extensively used CSS image replacement techniques for SEO purposes and to separate presentation from content. But from my reading of the Google Webmaster guidelines and other ...
5
votes
1answer
815 views

SVG in CSS backgrounds

Edit: How can I detect in php if the client browser is capable of displaying SVG as CSS background ? I renamed my stylesheet from .css to .css.php. So I can include at the beginning: <?php ...
8
votes
3answers
5k views

iPad and iPhone browser rotating images on site?

I am experiencing an odd occurance on a site I'm building right now where images are displayed 90 degrees different from how they are supposed to, but while maintaining the normal dimensions of the ...
2
votes
6answers
114 views

Any tool for image to CSS?

I have an image (not gradient) color, I tried to identify the color code but not possible. Is there any tool to convert image to css or css color code?
1
vote
1answer
45 views

Same page template but ackground image doesn't show

I have installed new theme for Wolf CMS here. This is a demo of the template. Why does the content background image show on the demo but not on my site? The HTML and CSS is the same, and the image ...
1
vote
1answer
170 views

Images randomly not showing up

I just uploaded a website for a client which looked good while previewing locally. When I visit it on the server though some images aren't loading properly. It seems to be quite random, and sometimes ...
1
vote
1answer
313 views

issue with wordpress theme background on widescreen computers [closed]

I am using the theme "irresistible" and I wanted to a add a picture of the person for whom I am building the site. Normally the background CSS uses repeat, but I don't want their picture to repeat i ...
1
vote
2answers
2k views

CSS2 way of accomplishing what CSS3 border-image does?

What is the best way these days to make a visually interesting border around a div using images? CSS3's border-image would perfect, but it's CSS3. I don't want to rely on that yet. Is there a ...
3
votes
7answers
18k views

How to make background image black and white?

Are there any filters that would make background image black and white? I have an image set as the background image using CSS, but now I need to apply a filter so that an image is shown in black and ...
2
votes
2answers
6k views

How to show a preview thumbnail on Facebook of a imageless website?

I have recently designed a website with no img tags, only one big fat CSS sprite with everything in it. Though, when I try to publish that website on Facebook, it won't show a preview thumbnail — ...
1
vote
2answers
244 views

image behind adsense

i want to have an image behind my google adsense just like the below image but when i tried the following css L{ background: transparent url("http://www.triphp.com/images/adback.png") repeat-x ...
1
vote
1answer
285 views

Fixed background images not displaying correctly on any web browser

http://i.stack.imgur.com/z8yEP.png <- screenshot for this question (not enough reputation) I am using fixed position images as seen at css-tricks.com/examples/BlurryBackgroundEffect/ to create a ...
10
votes
2answers
344 views

Communicating image size, best practice

If you are developing a html document strictly using current best practice of keeping styling out of the markup how do you best communicate image sizing? Past best practice wants image height and ...
2
votes
2answers
186 views

How do I make a sprite full of different images (hover, non-hover, etc)?

I understand there are tools on the net to make a sprite, but I'd like to learn how to create icons for the different states of the icon. Is there an easy way to make all these different variations ...
13
votes
4answers
11k views

How to pre-load images used only on hover?

I have a link that starts with one background image and then changes on hover to another. Both background images are set in the CSS. My browsers (any of them) don't seem to load the hover image ...
10
votes
6answers
1k views

How can I encourage the browser to download images from CSS file faster?

I use CSS to place a lot of my images (as backgrounds for <div>) and I often find that they load very slowly this way. They seem to be the last thing to load. Even small little icon images ...
21
votes
4answers
2k views

Why insert static files (CSS, images, JavaScript, ECC) in a subdomain?

Why so many big and little sites inserts static files (CSS, images, JavaScript, ECC) in a subdomain like media.example.com or s2.static.example.com? What are the advantages? Why not just a directory ...