-2
(Solved) Looks like the file . css was corrupted, I created a new one and rewrote the same code on it, after which the code started working normally.
I have a problem to put the attributes in an image in CSS, I save the file and do not modify anything in my image, and the other attributes (body and p) are working normally. NOTE: The image is appearing, however the attribute (edge) does not work.
Follow CSS and HTML code respectively.
@charset "UTF-8";
body {
background-color: gray;
color: rgba(0, 0, 0, 0.7);
}
p {
text-align: justify;
text-indent: 50px;
}
/*formatação imagens*/
figure.foto-legenda {
border: 8px solid red;
}
<figure class="foto-legenda">
<img src="glass-quadro-homem-mulher.jpg">
<figcaption>
<h3>Google Glass</h3>
<p>Uma nova maneira de ver o mundo></p>
</figcaption>
</figure>
Is your image appearing on the screen at least, or does not even the image appear? You want the red border to be only in the image is this?
– hugocsl
I’m not sure I understood your question right... Try adding the image attributes, in css, under .photo-caption > img {. It would look something like .photo-caption > img { width:100%; }
– Erika_Mac
hugocsl, the image is appearing, but the border is not. Erika, I didn’t understand it right... I put this code and did not change anything...: figure.photo-caption { width:100%; border:8px Solid red; }
– Texspray
Considering the Edit on the question, it is almost certain that you are going through a problem of cache browser! Whenever you change a file invoked by the page, use Shift + F5 (Chrome) or disable the cache while Devtool (Ctrl + Shift + i)(Chrome) is open (Ctrl + Shift + i > F1 > Preferences > Disable cache)(Chrome). I hope I’ve helped! ;)
– LipESprY
Thanks for the tip Lipespry
– Texspray