I have the next url for an image
url: http://www.andrearosseti.cl/image/cache/data/New%20Coleccion/Planas/SWEET-5-TAUPE-(1)-340x340.jpg
Now, i wont make in my CSS
background: url(http://www.andrearosseti.cl/image/cache/data/New%20Coleccion/Planas/SWEET-5-TAUPE-(1)-340x340.jpg)
the problem is the brackets in the url.
i try scape the bracket, but not work.
Any ideas?
I use Rails and SCSS
Thank
Here you go: Put \
in-front of the brackets.
<div></div>
div {
background: url(http://www.andrearosseti.cl/image/cache/data/New%20Coleccion/Planas/SWEET-5-TAUPE-\(1\)-340x340.jpg);
width: 400px;
height: 400px;
}
DEMO HERE
Replace braces with encoded braces chars:
div {
background: url(http://www.andrearosseti.cl/image/cache/data/New%20Coleccion/Planas/SWEET-5-TAUPE-%281%29-340x340.jpg);
width: 400px;
height: 400px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With