Dexpras
Dexpras

Reputation: 426

Can't set url inside css in codeigniter

.ico-del{
    content:icon;
    icon:url(http://localhost/reg_&_logins/assets/images/cross.png);}

I tried this in codeigniter, But it didn't work, is there any way to set this url.

Upvotes: 3

Views: 67

Answers (2)

printr
printr

Reputation: 157

You can set the image URL in the content tag:

.ico-del {
    content:url(path/image.gif);
}

See here: http://www.w3schools.com/cssref/tryit.asp?filename=trycss_content_url

Upvotes: 4

user2936213
user2936213

Reputation: 1011

Assuming your css file in assets folder, you can try this:

.ico-del{
content:icon;
icon:url("images/cross.png");
}

Upvotes: 1

Related Questions