Open nasivuela opened 5 years ago
The exercise is finished. I did it again from the beginning to understand it better. I've included all the tips you give me and I've added the styles for tablet. Thanks for your corrections :)
@rodriguezmontesinoseva Be careful with the routes, they should be relatives, not absolutes. That will fix the errors on Github Pages.
it's not clear to me what the relative routes are, how should I indicate them? I think the routes I have indicated in the code are relative :-/
Absolute routes start with a /
and when you use them you are indicating that the route starts at the top of your site.
So when you write /styles/main.css
on index.html, and put your page on the Github Pages domain http://beta.adalab.es/f-m1-evaluacion-intermedia-rodriguezmontesinoseva/
, you are telling that the CSS is on http://beta.adalab.es/styles/main.css
. You can see it clearly at the 'Network' tab of the inspector of Chrome.
Relatives routes do start without /
or with ./
, ../
and this way you indicate that the route is relative to the file where you are witting it.
So when you write styles/main.css
on index.html, the domain doesn't matter. And you are telling that the CSS is in a folder 'styles' that is located at the same level that index.html.
Okay, I think I got it, I'm gonna change it. Thank you Nasiba
Really cool job @rodriguezmontesinoseva !!!
Here you have some tips to improve the exercise:
.body
(class) that do not exist on HTML, did you meanbody
(tag)?body
tag as font-size, font-family, font-weight, color, background-colorOnce you have these fixed try to finish the styles for the tablet.
Let me know if you have any doubts ;)
Go for it!!