Answer the question
In order to leave comments, you need to log in
Background image for TR renders crookedly in Safari?
Set the background for table rows like this:
table tr {<br/>
background: url(derevo.png) bottom repeat-x;<br/>
}
Answer the question
In order to leave comments, you need to log in
He asked himself - he answered himself: let's make the rows and cells of the table forget that they should behave like a table.
tr {display: block;}
td {display: inline-block; background: transparent;}
And after small adjustments in size (the cells fell into a heap), everything falls into place.
And if
table tbody { background: url(derevo.png) repeat-x repeat-y; }
The same garbage occurs if you set the background for tbody. At the time, I couldn't decide. I had to redo the table logic so as not to use the background for tr and tbody.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question