@oliverkite, what part are you struggling with? You should ask that specific question here.
Looking at another solution isn’t going to be much of a help. It is hard to come up with a plan on how to do the projects…that’s the point. Looking at another solution bypasses that step.
There are the user stories that you need to follow to complete the project. Start by doing one user story at a time. Don’t worry about styling at this point. Complete the first user story, then the next and so on and you’ll have a page. It won’t be pretty for sure but that’s when you’ll think about how you’d like to style it. Maybe put pen to paper and make a rough sketch on how you’d like to lay out the page and then go ahead and start styling it to match your sketch.
That’s it!
Start small and work your way up. So, where are you struggling?
Thanks for the reply. Im actually struggling with remembering the coding structures. I do the lessons but dont seem to retain much of the information and trying to build this small site i dont know where to start so am having to look at other peoples examples, kindve feels like cheating though
That is completely normal. It is hard to remember everything. That is why you build projects to help you practice the concepts.
My advice would be to look at the finished product (not the code) and deconstruct it.
Here are the main components:
title of the subject
image
image caption
details of the subject
a link for more information.
Tackle each of those main components one at a time.
Start with html and go through each user story.
Then worry about styling.
You should not copy the sample.
You will learn a lot more by building your own project.
The goal of these projects IMO, is to learn how to research and ask questions.
For this project, some question that you can research will include:
What kind of element should I use for id="main"?
What kind of element should I use for id="title"?
What do they mean by the img element should responsively resize, relative to the width of its parent element, without exceeding its original size?
How to center an image?
Don’t worry about perfection or not making mistakes.
You are going to make mistakes and that is a good thing.
Learning from mistakes will help you.
Struggling with: User Story #8: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size.
User Story #9: The img element should be centered within its parent element.
@oliverkite, when a test fails, click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
The two stories you’ve mentioned will need CSS styling to pass which you haven’t started yet.
The first failing test says;
The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size.
Try using the "max-width" style property : expected 'none' to not equal 'none'
AssertionError: Try using the "max-width" style property : expected 'none' to not equal 'none'
Notice how the full message gives help.
There are two additional failing test where if you read the entire message you’ll see they are failing because of spelling issues.