A
A
Anton Shvets2016-10-24 17:18:14
Google Chrome
Anton Shvets, 2016-10-24 17:18:14

How to remove border around absolutely positioned image in Chrome?

<div class="section">
  <img class="i1">
</div>

.section {position:relative}
.i1 {
  background: url (1.png) no-repeat;
  position:absolute;
  top:-40px;
  left:-40px;
  outline:none;
  border:none;
}

A thin gray border is drawn around the image in chrome and in opera.
Mozilla doesn't have that.
What is it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Localhost, 2016-10-24
@Xuxicheta

<div id="section">
  <div></div>
</div>

#section {position:relative; }
#section div {
  background: url (1.png) no-repeat;
  position:absolute;
  top:-40px;
  left:-40px;
}

K
KurtsKhalia, 2016-10-25
@KurtsKhalia

border: 0 !important;
In general, this should not be, maybe you have a link hanging on it or a picture like that. Feel free to post an example in the fiddle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question