Yahoo Web Search

Search results

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

  2. I was trying to fill the browser window with a single image. 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.

    Usage example

    myClass img{border:0;}
  3. Oct 5, 2018 · 1. You can achieve this effect using two linear-gradients - one for the top/bottom borders, and one for the left/right borders: .clipped-border { padding: 0 0.2em; background: . linear-gradient(to bottom, . red 4px, . transparent 4px, . transparent calc(100% - 4px), . red calc(100% - 4px)

  4. People also ask

    • Margins
    • Padding
    • Border

    Margins are properties used to give breathing space to elements. As a real life example imagine houses built on a street block. The houses shouldn't be stuck to each other (in most cases), they should have spaces for driveways, yards, etc. These are exactly how margins work in css. If we add many images together on a page, we don't want them to sti...

    The padding property is a style we commonly give to buttons or containers. For example many "box containers" in websites use paddings so that the contents (text, images) are not stuck to the top or sides of the container and also have some breathing room from the container "walls". Taking again our houses example, if we look at the design of the in...

    Borders are usually simpler to understand. They merely add a border to your element, but to keep the container a uniform dimension without overflowing its parent element, we use box-sizing: border-box once property again. Using our house parallel, a border would be akin to painting the outside of our house in a red color, let's say, so it adds some...

  5. Jan 22, 2024 · <line-width> Sets the thickness of the border. Defaults to medium if absent. See border-width. <line-style> Sets the style of the border. Defaults to none if absent. See border-style. <color> Sets the color of the border. Defaults to currentcolor if absent. See border-color. Description.

  6. Jul 10, 2007 · Reset all Margins & Padding. 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.

  7. Feb 23, 2024 · border: none; applied to a button: button { border: none; background-color: #e7f4fe; padding: 10px 20px; } This will remove the button's entire border, creating a clean, borderless look. border: 0; applied to an image: img { border: 0; padding: 5px; }

  8. Feb 17, 2011 · CSS Borders. border-style. The border style properties specify the line style of a box's border. [Syntax] border-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset. Example. [style.css] p{ width: 300px; height: 100px; } p#dot{ border-style: dotted; } p#sol{ border-style: solid; } [index.html]