In CSS there is no property that can manipulate the element’s image file img. If that’s really the need I suggest you trade for the element div and specify the image in CSS
Example:
CSS:
#div_img {
background-image:url('http://www.sitedaimagem.com/img/header.png'); /* url */
width:396px; /* largura */
height:153px; /* altura */
}
HTML:
<div id="div_img"></div>
1# Edited:
Via CSS it is not possible to manipulate the link, or you set it directly on HTML or in the Javascript
2# Edited:
New example using Jquery:
CSS:
#div_img {
background-image:url('http://www.sitedaimagem.com/img/header.png'); /* url */
width:396px; /* largura */
height:153px; /* altura */
}
HTML:
<a id="div_link" href="http://www.uol.com.br"><div id="div_img"></div></a>
Jquery:
$(document).ready(function() {
$('#div_link').attr('href','http://www.google.com');
})
No, it doesn’t even make sense to do that. What would be the purpose?
– Woss
I am programming in a tool where I can select my file
*.css
I just can’t put the tag<img src="">
to select the image I want to place as a point to access the link– R.Santos