Go to this page. On it is an image. Right click the image and select to open the image in a new tab. When you do, you’ll see the image and the URL of the image. Not the page that contains an image. The URL of the image is what you want.
do you want to center only the green header with white space left and right?
do you want to have the green header span the whole width?
I’d like to center only the green header with white space left and right.
Any general idea what you could do to solve it?
What did you try so far to fix it?
The only thing I’ve tried is to place a bunch of at the top of the page but that seems like a lot of markup. I was wondering if there’s another element that would be more efficient. If you’d rather just give me a hint that would be great! Thanks.
Can you provide more context?
usually, when you use the # before something tells HTML that there is an id that you can retrieve and look for.
Now, this id can be somewhere within the HTML file or it might be an id within the CSSS file. If you provide some code it would be easier to tell which one is true.
Ah, okay I think I see your point. In this kind of cases, it’s almost always the HTML.
The reason is HTML is the one in charge of actually showing the nav and display and structure of elements.
CSS is basically saying what kind of styles you would have for a single or group of elements. You can and you will have nested selectors in CSS but it’s only if that nested selector/element is already in the HTML.
In this particular example it’s the same case. Since we want to have an element inside another one (nav inside header) it’ll be an HTML change.
Let me know if you had further questions and Good Luck!
The .nav-link with href="#our-story" is not linked to a corresponding element on the page : expected null to not equal null
AssertionError: The .nav-link with href="#our-story" is not linked to a corresponding element on the page : expected null to not equal null
But when I click on “Our Story” it does take me to that section of the webpage. I don’t understand.