I want to make left space between menu icon and logo stable from 260px- 600px ?
-
hallo,
I am bussy now to write media queries .
I set first media query to max 520px just to see how it looks as layout.
I see a problem with spacing between the hamburger menu and the logo . when I open the homepage on 280px in inspect element it looks good the space betweeen the icon and the logo . I tried first % but as the width grow the blank space growed too so I have changed % to pixels.
but now it is beter than % but still when I go from 280 to 520px the space between those 2 elements changes to narrower. it is not stable which has to be !
as I said I tried flex with % it didn’t helpt .
I have just tested international famous website and when I opend it in inspect element in any resolution between 240 to 600 there was no devation. the space between the menu icon and the logo is stable.
this is my css code :
@media (max-width: 520px) { .flex-container { width:100%; height: 120px; position: fixed; top:0; left: 0; z-index:9999; display:flex; flex-direction:column; background: linear-gradient(to top, #4b5054 0%,#4b5054 50%,#45accb 50%, #45accb 100% ); } .flex-container-section1 { width:100%; margin-top:0.4rem; } .navigation { padding-left:4%; } .menu { position:fixed; width:37.5px; height:37.5px; padding-top:-0.2rem; } .logo { font-size:14px; color:#ffd978; padding-left:60px; padding-top:0.6rem; } .info2 { display:none; } .info3{ display:none; } .flex-container-section2{ width:100%; display:flex; flex-direction:row; } .item-menu-name { display:flex; justify-content:flex-start; font-size:12px; color:#ffd978; margin-left:4.5%; margin-top:0.25rem; } .flex-container-section3 { width:100%; display:flex; flex-direction:row; } .info4 { width:96%; display:flex; justify-content:flex-start; margin-left:4%; color:white; font-size:14px; margin-top:0.6rem; } .info5 { display:none; } .info6{ display:none; } .flex-container-section4 { width:100%; display:flex; flex-direction:row; } .info7 { width:96%; display:flex; justify-content:flex-start; line-height:1.2; font-size:14px; color:white; margin-left:4%; } .info8 { display:none; } .info9 { display:none; } }
how I can solve this problem . what I have to do to let the margin between menu icon and logo to be stable from 260 to 600 for example?
I think myself the % wil not help , I don’t know I want your advice to solve this problem?
thanks
The page I need help with: [log in to see the link]
- The topic ‘I want to make left space between menu icon and logo stable from 260px- 600px ?’ is closed to new replies.