linking to images
Can easily anyone tell me how I can link to all my images in a new css documanet employing:
qualifications: url(IMAGELINK)
no-repeat;
This works fine for that top banner of my site (and it really is obviously easier to help update images this particular way) but when i try to use it for all the other images in my site apart from show up. Consequently, in the interim, I’ve been obligated to revert returning to:
< img src=" IMAGELINK" > while in the html pages.
Can easily anyone tell my family what I’m performing wrong
This is the code I use as an example:
About the html pages WHEN I place the div, which consists of identifier where I would like the image to seem, like so:
< div id=" bumper" > < /div>
After which it in the css WE add the photograph, like so:
#bumper
qualifications: url(IMAGELINK)
no-repeat;
This works for my banner however is not my other pictures.
That needs to be fine, but you’ll to set a great explicit width as well as height, otherwise the actual div will resize for you to its contents, which consist of nothing.
Perhaps there is a reason that you’re replacing *all* of one’s images with CSS, while
Sorry it took on a daily basis to reply, Shadowfiend.
Very well, I’m not upgrading the images, just the sort of code used that will display them. I don’t see much of anyone using this particular, < img src=" " >, anymore so I thought We would try to preserve my code up to standards….. and also help to make my images easier to replace (should WHEN I ever need to) in the future.
Not all images has to be CSS. Basically just ‘background’ images, meaning anything you would like text/content to be top most off.
You intend to seperate your ‘design images’ out of your ‘content images’, when CSS removes design from content.
The other situation where you’ll definitely want to use CSS images is if you wish to achieve rollovers, since doing rollovers having images seems a more rewarding solution than this old method. It is usually difficult to choose when to embed the image directly while to make them a background with a div, but I daresay there are few pages which will have ONLY backgrounded pictures.
Basically, things like routing and titles provide themselves to backdrop images, whereas when you need to include a picture in a piece of writing, that should always be an img label. Content vs design, as Stylise stated.