Vertaling van "Inline-Style" in Engels
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Verwenden Sie den Inline-Style display:block, wenn Sie in Ihren Templates Bilder aneinanderreihen möchten (somit werden fehlerhafte Leerstellen im Layout verhindert).
Use the inline style display:block if you want to string images together in your templates (this prevents incorrect blanks in the layout).
Dieses Attribut wird als CSS Inline-Style an das HTML-Element geschrieben.
This attribute is written to the HTML element as a CSS inline style.
Die Breite von 100vw übergeben wir ebenfalls als Inline-Style, sodass sie nur angewendet wird, wenn das Hinzufügen der Maximalbreite geklappt hat.
We pass the width of 100vw as inline styles too, so it only applies if adding the maximum width worked.
Und weil:before ein Pseudo-Element ist, für das überhaupt kein HTML-Tag existiert, kann man auch keinen Inline-Style dafür definieren.
But since:before is a pseudo-element, it does not have an HTML tag, so you cannot define an inline style for it.
Man spricht in diesem Fall von „Inline-Style".
Hierfür gibt es folgende Lösung: Wir lesen für jedes Bild die tatsächliche Breite aus und legen diese über einen Inline-Style als max-width fest.
For that, there is the following solution: We fetch the natural width from each image and set it as the max-width via inline styles.
Statt 100vw sollte hier für width aber 100% genutzt werden - das kann auch einfach in die CSS-Datei geschrieben werden, statt als Inline-Style.
Instead of using 100vw for width, you should use 100% and specify this in the CSS file instead of inline.