This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

150 points
Picture
Submitted by
Diana Ignat
over 4 years ago

hy i'm stuck on the 4 exercises of font and border.

Since untill now i insert only a border i don't know how to get throught of this : my code is:
h1{
font-family:Verdana,sans-serif;
color:#576D94;
}
p{
font-family:Garamond,serif;
font-size: 18px;
color:#4A4943;
}
img{
border-width:1px;
border-style:solid #4682b4;

    height: 100px;
    width: 300px;

}

0 votes

permalink

Hello Diana,
I don't know what error you are getting because you didn't specify.
However, looking at your code i see a problem with the img border.
There is a specific formula for border which is size type color in this order.
you did not specify the size

2946 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
over 4 years ago

2 Comments

51fd3dc280ff33b0e5004064_32411941 Black Ops 2 about 4 years ago

r u a computer programmer. My dad is a computer programmer. check it out ChannelPin.com

51fd3dc280ff33b0e5004064_32411941 Black Ops 2 about 4 years ago

a website my dad programmed. Black Berry.


0 votes

permalink

Well the exercise was properly build to do this border -anyway i follow your instruction and i type border-width:1px;
border-style:solid;
and border-color: #4682b4;

and i get'it.Thanks for support.:D

150 points
Picture
Submitted by
Diana Ignat
over 4 years ago

1 Comment

5533b41186f55278520000c6_295543857 tony de araujo over 4 years ago

Great Diana, learning to code happens in layers. No one can claim knowing everything. But it is a very exiting activity. Good luck with your studies.


0 votes

permalink

I think that in your border you just have to type:
border: 1px solid #4682b4
And that's it.
So the code for your image will be:
img {
border: 1px solid ##4682b4;
width: 300px;
height: 100px;
}

Hope it works for you.

215 points
Picture
Submitted by
Alejandro Alonso
over 4 years ago


0 votes

permalink

add ctrl+0 if i still didn't work

225 points
D1497c0938bf7d0affa2b20f8ac8f429?s=140&d=retro
Submitted by
chrishibb
about 2 years ago