i want some help in getting the img src stylesheet.css
Instructions
Add an to your HTML document. Its src attribute can point anywhere! (Check the Hint if you’re stuck or need a picture.)
On the CSS tab, set your image’s height to 100px and width to 300px.
On the CSS tab, give your image a border of 1px solid #4682b4.
src is just an attribute you use to tell <img>
where the image is located, you don’t need src
in the stylesheet. Please post your html and css code so we can have a look
src {
height:100px;
width:300px;
border: 1px;
color: solid #4682b4;
}
src
is not the right css selector. It is just an attribute to tell <img>
where the image is located, take a second to think what the correct css selector is, how are css selectors defined?
There are two proper ways to define a border: a border property with 3 values, or the individual property’s (border-width, border-style,border-color), here is some general css syntax to help clarify some of the terms i used:
selector {
property: value;
property: value;
property: value;
}
1 Like