View Full Version : insert the image in css
john00
12-09-2013, 12:04 PM
hello to all
my qusetion is If I can insert the image in css, so how can I add the alt attribute or other property. Because alt attribute are important for the seo.
irfan
12-10-2013, 04:27 AM
I can understand the old "image replacement" trick, but as Jorge states, the original tag text content should cover that.
If you use css background sprites for standalone icons (no-text), that's a bit more tricky. Ideally they'd be images in their own right, but this is a feature that's becoming more popular with the iconification of pages. An interesting example would be the the icons on this post (Flag and Bookmark). Neither has an accompanying title attribute:
<a class="button blue flag no-margin margin-right" href="#"><i class="fa fa-flag"></i></a>
This uses an icon font, but for the sakes of SEO / accessibility it probably equates to the same thing - no SEO, not accessible.
milos87popovic
12-10-2013, 02:20 PM
I don't understand you, you add for example background-image:url-to-image or something else?
On background image you can't add alt and title tag, only on <img src=""/> you can add this tags.
Good luck
Zimmerman
03-18-2014, 12:25 AM
I would like to give the example of image adding (http://www.rasteredge.com/how-to/vb-net-imaging/tiff-add-image/) to TIFF document by using a tiff processing (http://www.rasteredge.com/how-to/vb-net-imaging/tiff-processing/) and editing tool within a .net application. Use a tiff image inserting plugin, we can copy and add an image, graphics, signature or logo to TIFF document using variable image compression modes to any existed TIFF page or new creating blank TIFF page.
stevex
12-23-2014, 01:28 AM
<img src="http://www.flowerpicturegallery.com/d/5298-2/Big+dark+pink+Lotus+Flower+photo.jpg" alt="A pink beautiful flower">
img {
display: block;
max-width: 100%;
}
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.