Yahoo Suche Web Suche

Suchergebnisse

  1. Suchergebnisse:
  1. 5. Okt. 2018 · How can I add a border to a DIV which should have a smaller width than the element? Like so: Currently I have: Column-1. border-bottom: 1px solid grey; Column-2. border-left: 1px solid grey; border-bottom: 1px solid grey; Column-3. border: none; Column-4. border-left: 1px solid grey; I want the borders not to occupy the div padding space, like so:

  2. Grundkenntnisse in • HTML • CSS. Mit der Eigenschaft position können Elemente aus dem normalen Fluss entfernt und an jeder beliebige Stelle des Viewports positioniert werden. Auf andere Elemente haben positionierte Elemente keinen Einfluss. Zur Festlegung der Position dienen die so genannten Inset-Eigenschaften ( inset: Einsatz, Anschlag ...

  3. 5. Sept. 2011 · The padding property in CSS defines the innermost portion of the box model, creating space around an element’s content, inside of any defined margins and/or borders. Padding values are set using lengths or percentages, and cannot accept negative values. The initial, or default, value for all padding properties is 0. Here’s a simple example:

  4. 24. Okt. 2013 · I usually create 3 extra classes in my custom CSS namely, .padding-0 that sets the left and right padding (only) to 0; .padding-sm that sets padding to 2px and .padding-md that sets the padding to 5px. The usual padding is 15px (unless customized), so these extra classes are sufficient.

  5. 16. Juni 2020 · None of the answers here helped me with Bootstrap 4. Adding container-fluid p-0 removed the horizontal padding, but created a horizontal scrollbar. The scrollbars come from the negative margin of the row elements - a 100% width container with no padding gets stretched by 15px on each side. It has nothing to do with column padding, as far as I ...

  6. 22. Nov. 2017 · If you want to create a table with borders and padding in HTML, you may encounter a problem when you use the border-collapse: collapse property. This property removes the padding from the table cells, making them look cramped. In this Stack Overflow question, you can find out why this happens and how to fix it with some alternative solutions.

  7. 7. März 2022 · 19. The declaration of height: 0; is applied. If you leave it at height: auto;, you would see a 20px difference (the height of the line with "Hello!"), making it a total 100px high. With height set to zero, it's only 80px high: padding-top + padding-bottom = 80px. So the answer is: Yes, it's expected behavior.