Size and Borders


My HTML image is

which is correct. I am then being asked to set three CSS attributes; Height, Width, and a border...

so my selector is " img src { " correct?

if so, then what is wrong with my code,

img src {
height: 100px;
width: 300px;
border: 1px solid #4682b4;

That is the border I am asked to set, but it says that I am not applying the border correctly... Help...


src (source) is an attribute you use in html to tell <img> where the image is located, you don't use it as part of your css selector. When working with borders, make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac)

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:


the backtick is located above the tab key on your keyboard


Ok, well, I figured it out shortly after I posted this plead for help, but thanks for that anyways. Now I know for next time. Thank you.