Hi everybody,
I've been learning html/css for three month now and I'm creating my first website at the moment (pure css, no js). Now I've run into a pretty strange problem and got totally stuck. It would be so great if someone would be able to find a solution for this issue.
I've created a banner block for the top of my pages, the usual stuff you see everywhere - icon left-aligned, logo text and hamburger navigation menu right-aligned. Then, to make positioning and styling easier I decided to wrap it into a container, so I did and defined a
I've put the code in a CodePen, so if someone could check that out and tell me what I've done wrong, that would be so great. Spent a good week now trying to track down the issue without any success. Here's the link to the CodePen:
The red bit is the block I want to get rid of whilst at the same time get the `
From all my trying and changing I assume the css is a total mess now. I would thank you forever if someone could also clean the code up a little, if necessary.
Sorry for my english, if anything is unclear please just ask. Thanks.
I've been learning html/css for three month now and I'm creating my first website at the moment (pure css, no js). Now I've run into a pretty strange problem and got totally stuck. It would be so great if someone would be able to find a solution for this issue.
I've created a banner block for the top of my pages, the usual stuff you see everywhere - icon left-aligned, logo text and hamburger navigation menu right-aligned. Then, to make positioning and styling easier I decided to wrap it into a container, so I did and defined a
.banner-container
class. Unfortunately, the container class styles don't get applied to the correct banner element, instead it creates a second banner element underneath the actual one and targets that one. And I just don't know why. When I change the height value of the banner-container, it changes the height of the red element instead of my actual banner element. I've put the code in a CodePen, so if someone could check that out and tell me what I've done wrong, that would be so great. Spent a good week now trying to track down the issue without any success. Here's the link to the CodePen:
The red bit is the block I want to get rid of whilst at the same time get the `
.banner-container
`class to target the correct banner element above, which it doesn't do right now.From all my trying and changing I assume the css is a total mess now. I would thank you forever if someone could also clean the code up a little, if necessary.
Sorry for my english, if anything is unclear please just ask. Thanks.