CONNEXION
  • RetourJeux
    • Tests
    • Soluces
    • Previews
    • Sorties
    • Hit Parade
    • Les + attendus
    • Tous les Jeux
  • RetourActu
    • Culture Geek
    • Astuces
    • Réalité Virtuelle
    • Rétrogaming
    • Toutes les actus
  • RetourHigh-Tech
    • Actus JVTECH
    • Bons plans
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTECH
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch
    • Xbox Series
    • Overwatch 2
    • FUT 23
    • League of Legends
    • Genshin Impact
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • PS4
  • One
  • Switch
  • Wii U
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Etoile Abonnement RSS

Sujet : Bloqué sur un Header Responsive

DébutPage précedente
1
Page suivantePage suivante
DGsAhpla DGsAhpla
MP
Niveau 5
22 juin 2020 à 00:55:52

Tout est dans le titre. Quand je passe à moins de 829px plus aucun header, que dalle. Voice le code CSS...
.header { height: 450px; width: 100%; background: rgb(255, 118, 117); position: relative; } .header_navbar { width: 100%; height: 100px; display: flex; flex-direction: row; justify-content:space-between; align-items: center; } .header_navbar--logo-title { color:rgb(255, 234, 167); font-size: 28px; } .header_navbar--menu-link { margin-left: 40px; color:rgb(45, 52, 54); text-decoration: none; } .header_texture { height: 100%; width: 100%; position: absolute; top: 0; left: 0; background: background-size: cover; z-index: 1; opacity: 0.7; } .header_mask{ position: absolute; bottom: 0; background: 0 0; height: 42px; width: 100%; z-index: 10; } .header_slogan{ text-align: center; margin-top: 30px; } .header_slogan-title { color: white; font-size: 40px; text-transform: uppercase; font-family: 'Anton'; font-weight: bold; letter-spacing: 2px; } .h_slogan-btn { color: white; font-size: 18px; text-decoration: none; padding: 15px 20px; background: #0984e3; border-radius: 3px; display: none; } .header_navbar-toggle{ width: 100px; height: 30px; display: flex; align-items: center; display: none; } .header_navbar-toggle-icons,.header_navbar-toggle-icons:before,.header_navbar-toggle-icons:after { content: ""; display: block; width: 60px; height: 3px; border-radius: 5px; background-color:rgb(9, 132, 227); position: relative; } .header_navbar-toggle-icons:before {top: 10px} .header_navbar-toggle-icons:after {top: -14px} @media only screen and (max-width: 829px){ .container { width: 100%; padding: 0 20px; } .header_navbar-toggle { display: flex; z-index: 1000; } .header_navbar--menu { display: flex; flex-direction: column; justify-content: center; align-items: center; position: absolute; width: 100vw; height: 100vh; background: rgb(229, 142, 38); top: 0; left: 0; } }

Nuagedecube Nuagedecube
MP
Niveau 21
22 juin 2020 à 06:53:54

Voir la règle @media.

mechwarrior52 mechwarrior52
MP
Niveau 9
22 juin 2020 à 08:17:39

Pourrais tu mettre le code html de la partie header aussi ?

DGsAhpla DGsAhpla
MP
Niveau 5
22 juin 2020 à 11:24:11

Bien sur voici le code HTML:
<div class="header_navbar-toggle">
<span class="header_navbar-toggle-icons"></span>
</div>

mechwarrior52 mechwarrior52
MP
Niveau 9
22 juin 2020 à 17:50:51

est-ce que tu peux me montrer le code HTML à partir de container ? Parce que je crois que le problème doit se trouver à ce niveau.

DébutPage précedente
1
Page suivantePage suivante
Répondre
Prévisu
?
Victime de harcèlement en ligne : comment réagir ?
Infos 0 connecté(s)

Gestion du forum

Modérateurs : Thymotep
Contacter les modérateurs - Règles du forum

Sujets à ne pas manquer

La vidéo du moment