A
A
asdz2014-10-08 22:28:48
css
asdz, 2014-10-08 22:28:48

How to avoid repeating background-image in table cells (display:table-cell) ?

The background set for a row is repeated in cells in chrome, how to solve this problem?
codepen.io/anon/pen/erHfE

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nublog, 2014-10-08
@nublog

Cells are, of course, part of the rows. Now the cells have a transparent background, and therefore the row background is superimposed on them. You can avoid this by setting the background for the cells, for example:
td {
background: #fff;
}
Although I do not see any pictures in my example at all.

H
hjk, 2014-10-09
@hjk

Well, except for a stupid decision of such a plan , nothing worthwhile comes to mind. This, of course, "works", but on the condition that the width of the cells is known, and you will have to select the values ​​​​by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question