A
A
Anastasia2020-03-07 14:33:40
JavaScript
Anastasia, 2020-03-07 14:33:40

How to make backgound color and image display together?

.first_block {
    background: transparent linear-gradient(180deg, #FFFFFF 0%, #F8F7FD 100%) 0% 0% no-repeat padding-box;
    background-image: url(../img/first_bg.svg);
    background-size: cover;
    opacity: 1;
    position: relative;
}


How to make it have both backgound color and backgound image?
Because in my case only the backgound image is displayed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aleksandr, 2019-07-26
@Sashjkeee

Hang a function that changes srcthe image on click through attr

A
A person from Kazakhstan, 2020-03-07
@patsooo

They get along great ..only you need to write on a different background: rgba(.......), url(....) and it will work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question