Yahoo Web Search

Search results

  1. Top results related to border:none; padding:0;

  2. Jan 22, 2024 · div {border: 0.5rem outset pink; outline: 0.5rem solid khaki; box-shadow: 0 0 0 2rem skyblue; border-radius: 12px; font: bold 1rem sans-serif; margin: 2rem; padding: 1rem; outline-offset: 0.5rem;}

  3. Adding styles like border:none; did not remove the border and neither did margin:0; or padding:0; or any combination of the three. However, adding position:absolute;top:0;left:0; fixed the problem. The original post above has position:absolute; but does not have top:0;left:0; and this was adding a default border on my page.

  4. Jul 10, 2014 · 4 Answers. Sorted by: 3. It's not about the margin nor padding, it's the border: 0 that hides the border. Add a rule for the table tds such as: td { border: 1px solid black; } to show td borders. The same applies to table tag.

  5. Sep 5, 2011 · 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: .box { padding: 0 1.5em 0 1.5em; } The example above is using the padding shorthand property, which accepts up to four values, shown here:

  6. border: 0; applied to an image: img { border: 0; padding: 5px; } This will display the image with a hairline border that inherits the surrounding element's foreground color. Key Differences: Complete removal vs. hairline border: border: none completely hides the border, while border: 0 creates a barely visible hairline one.

  7. Feb 24, 2011 · The padding property is a shorthand property for setting 'padding-top', 'padding-right', 'padding-bottom', and 'padding-left' at the same place in the style sheet. padding: 10px 20px; top and bottom paddings are 10px, right and left paddings are 20px. padding: 10px 20px 30px;

  8. Jul 10, 2007 · * { margin: 0; padding: 0; } This has become a very popular technique lately, and for good reason. It removes all default margin and padding for every object on the page, no holds barred, regardless of browser. This provides a nice clean slate for design and ensures that all spacing is intentional, explict, and ubiquitous across browsers.