Frage von Nindane, 14

display:block neutralisieren?

Was ist die Standarteinstellung für display?

Ich muss ein display:block neutralisieren aus einem externen code auf den ich keinen zugriff hab.

Mit display: inline wird es auch nicht besser, nur wenn ich es "ausschalte" wird es so wie ich es gerne möchte.

Antwort
von StefanTheDoctor, 14

inline
Default value. Displays an element as an inline element (like <span>)

block
Displays an element as a block element (like <p>)

flex
Displays an element as an block-level flex container. New in CSS3

inline-block
Displays an element as an inline-level block container. The inside of
this block is formatted as block-level box, and the element itself is
formatted as an inline-level box

inline-flex
Displays an element as an inline-level flex container. New in CSS3

inline-table
The element is displayed as an inline-level table

list-item
Let the element behave like a <li> element

run-in
Displays an element as either block or inline, depending on context

table
Let the element behave like a <table> element

table-caption
Let the element behave like a <caption> element

table-column-group
Let the element behave like a <colgroup> element

table-header-group
Let the element behave like a <thead> element

table-footer-group
Let the element behave like a <tfoot> element

table-row-group
Let the element behave like a <tbody> element

table-cell
Let the element behave like a <td> element

table-column
Let the element behave like a <col> element

table-row
Let the element behave like a <tr> element

none
The element will not be displayed at all (has no effect on layout)

initial
Sets this property to its default value. Read about initial

inherit
Inherits this property from its parent element. Read about inherit

Keine passende Antwort gefunden?

Fragen Sie die Community

Weitere Fragen mit Antworten