Image in the HEADER problem

Hi,

If I add a Hamburger to the Header it goes in without pushing the header text around (pic #1)

If I also add an IMAGE it pushed the text “down” (Pic#2)…

All suggestions gratefully accepted.

tony

PIC#1:
Screen Shot 2023-06-28 at 8.43.05 AM

PIC#2
Screen Shot 2023-06-28 at 8.43.26 AM

There are many ways to do it, but I would do it this way.

Screen Shot 2023-06-29 at 10.09.41 AM

Since the Header automatically adds a child div to hold your image and hamburger, I added a container to hold the items. Note that I added the label element and removed the original header content.

Here are the Container1 properties:

Screen Shot 2023-06-29 at 10.10.28 AM

But then the Header1 element is not necessary.

So a simple page organization could be like this:

I used the Container elements and Flexbox to create the fixed header, footer, and stretchy body.

Page1 properties:

width: 100vw
height: 100vh
display: flex
flex-direction: column

Body1 style:
flex: 1;

You can set or unset the height of the header and footer.