cate0611 / spheres

STUFF MOVES // project web
0 stars 0 forks source link

Linking 2 page question #3

Open sehsarah opened 3 years ago

sehsarah commented 3 years ago

So part A - creating a 2nd page in the same repo:

Screen Shot 2021-10-26 at 9 36 55 AM

Then part B - linking to that 2nd page:

Screen Shot 2021-10-26 at 9 36 50 AM

Here

cate0611 commented 3 years ago

Not sure if I did the right thing as I have tried but is not working and now the video has shrunk down to 1/3 size, i have uploaded recent html to repo - spheres

sehsarah commented 3 years ago

I can't see a new folder named 2 here @cate0611

Screen Shot 2021-10-26 at 12 30 38 PM
cate0611 commented 3 years ago

This is what happens when I try add file 2[](url

Screen Shot 2021-10-26 at 2 11 55 PM Screen Shot 2021-10-26 at 2 12 01 PM

)

cate0611 commented 3 years ago

all sorted now there are now 2 files, I will follow the rest of your instructions and let you know if I have nay more issues. thanks so much

sehsarah commented 3 years ago

awesome @cate0611 will check back later today

cate0611 commented 3 years ago
Screen Shot 2021-10-26 at 4 52 58 PM

Still unable to connect the to pages together

sehsarah commented 3 years ago

That all looks right @cate0611 awesome work, but yeah not linking hmm so i will have to figure out what's happening - just on my phone right now so will check when at the laptop - in the meantime @ellysmlly can u spot what's happening?

sehsarah commented 3 years ago

Ok I can see what's happening, when you inspect element on your site, you can see that the a tag isn't around the correct element:

Screen Shot 2021-10-27 at 11 25 04 AM

Maybe consciously check your tabbing and make sure your a tag is correctly wrapping around one of those divs

Let me know how you go @cate0611

cate0611 commented 3 years ago
Screen Shot 2021-10-27 at 11 12 37 PM Screen Shot 2021-10-27 at 11 14 38 PM
cate0611 commented 3 years ago

I have tired both different variation and the both are not working? an other suggestions ?

sehsarah commented 3 years ago

What i've written above is def the answer @cate0611 so you don't need other suggestions you just need to form your a tag correctly around the div


As an example:

<a href="/2">
    <div class="sp-video">I'm a container with a link around it</div>
</a>

Notes about a tags:

  1. An a tag has an href attribute which is the link url i.e. how the link knows where to take you
  2. An a tag should wrap around the thing that you are making into a link, in this case around the video container
cate0611 commented 3 years ago

Thank you for the late reply! I have tried what you have suggested above and that has not worked either, do you think it might not be working because I have my folders around the wrong way? the opening index is in folder two and my second index is in spheres? @sehsarah

cate0611 commented 3 years ago
Screen Shot 2021-10-28 at 12 18 42 AM