CakePHP - Upload a background-image css

1

I can not load my image in the Css Background

style.css - working, just not being able to call this image

.layout{
    width: 100%;
    height: 230px;  
    position: relative;
    margin: auto;
    background-image:('../img/background.png');
}

o .htaccess - within the webroot that

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

and html

<div class="layout">
      <div class="layout-image">
          <img src="img/layout.png" alt="">
      </div>
    </div>
    
asked by anonymous 12.06.2014 / 02:34

1 answer

3

I believe the url command is missing between the background-image property and the specified path;
Example: background-image: url('../img/background.png');

    
12.06.2014 / 03:56