How to use Background image in a Materialize column

1

Good morning, my question is how I should do to put a background image in a materialize column.

For example, suppose I want a section with half an image and half a text would be something like that?

<div class="row">
        <div class="col m6 imagen-aqui">

        </div>

        <div class="col m6">

        </div>
</div>

Then in the CSS I do something like that

.imagen-aqui {

background-image: url('url o imagen');
background-repeat: no-repeat;
background-size: cover;

}

But nothing appears :( what am I doing wrong? or do you know in some other way to separate a large image with text and titles on one side

Thanks in advance

    
asked by Deivbid 25.08.2017 в 18:41
source

1 answer

1

Try putting this in your CSS:

background-repeat: no-repeat;
height: 100vh;

I think the problem is because you have not defined a stop for the image. Greetings

    
answered by 25.08.2017 / 18:48
source