Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

On Firefox HTML input overflows on the right in a CSS grid

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 19 προβολές
  • Τελευταία απάντηση από mcoulont

more options

My CSS grid has the following stylesheet :

.declaration {

   display: grid;
   margin-top: 20px;
   grid-column-gap: 5px;

}

The leftmost element of the grid has the following stylesheet :

<input type="text" id="etiquette" class="etiquette" title="label" style="grid-column: 1 / auto; display: initial;"> .etiquette {

   grid-row: 1 / span 2;
   margin-left: 5px;
   margin-right: 10px;

}

And my etiquette element overflows on the right (see image).

This problem arises on Firefox (but not on Chrome neither on Opera).

My CSS grid has the following stylesheet : <span id="declaration" class="declaration" style="grid-template-columns: 80px 10px 150px; grid-template-rows: 10px 10px 20px;"> .declaration { display: grid; margin-top: 20px; grid-column-gap: 5px; } The leftmost element of the grid has the following stylesheet : <input type="text" id="etiquette" class="etiquette" title="label" style="grid-column: 1 / auto; display: initial;"> .etiquette { grid-row: 1 / span 2; margin-left: 5px; margin-right: 10px; } And my etiquette element overflows on the right (see image). This problem arises on Firefox (but not on Chrome neither on Opera).
Συνημμένα στιγμιότυπα

Όλες οι απαντήσεις (2)

more options

Can you provide a working example of this bug on https://codepen.io?

Thanks

more options

Sure : https://codepen.io/mcoulont/pen/GRgOLmM Do you want me to clean up ?