7. Shorthand - "Did you set the border?" Using the supplied code does not work


#1

Here's the exercise (Borders, Part 7. Shorthand) that I'm having an issue with:

https://www.codecademy.com/courses/learn-html-css/lessons/borders/exercises/border-shorthand?action=lesson_resume&link_content_target=interstitial_lesson

I previously had a problem with Exercise III and the 5px border-width. But I tried zooming, different browsers and different border-width values and nothing seems to work here.
Using the supplied code provides this error message: "Did you set the border?"

Here's the supplied code:

.hotel {
  border: 2px solid #FFF;
  margin: 60px auto;
  padding: 10px 0px 0px 0px;
  width: 90%;
}

I tried changing the width to 1-5px and the #FFF to #FFFFFF but can't find the issue.

  • Xander.

#2

Would you mind posting the instructions relating to the border-width? It isn't wanting to connect for me.


#3

Hey i am also the same problem.Did you find a solution to this? If yes,please reply back.


#4

Nothing, I have been trying to get this to work for the past hour. It doesn't even accept its own corrected code. What is someone to do...


#5

Common issue, try copying your code then reseting the exercise, then pasting and hitting submit. Hope I helped :slight_smile:


#6

someone from one of the other threads suggested:

change .hotel to .hotelx in style.css and change all the

to < div class="hotelx"> in index.html. Theres 5 of them in total.

I just did this 2 seconds ago and it worked perf. Thanks guys!


#7

thanks for the help!!!


#8

Thanks, just had this problem too, but changing to 'hotelx' helped.


#9

Hey guys , instead of border-top-width, set the border-width to 5px only.
After trying for many times , it only worked for me.
I think there is some problem with the given instruction.
border-width:5px;


#10

Thanks for the help! I realize you didn't come up with this solution, but any idea why i helped?


#11

Google Chrome worked for me with the code requested in the exercise.


#12

Hey, thanks was very useful
:slight_smile:


#13

I've the same issue , did anyone find the solution ???


#14

I have the same issue whats the solution?? The hotelx thing is not helping. Please help Im stuck
EDIT: That hotelx thing worked for me:) Thanks bigheadedboy18.


#15

the hotelx didn't work for me, and the supplied code doesn't work either. I'm using Chrome as well.

EDIT: Set your browser zoom to 100% if you're zoomed out or in, it should work!


#16

It worked perfectly! Thank you very much indeed!


#17

Yes, thank you. Its really work!


#18

No problem, I have no clue how this thing worked. I am a noob coder and
just did this after a friend who codes legit for life and found this
solution in another thread.


#19

Thank you that worked for me.:slight_smile:


#20

Thank you^^ It is work.