3
.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.

2
  • Is the image path correct? Commented Jan 31, 2014 at 9:50
  • Even if it did work.. once you click that upload button.. :| Commented Jan 31, 2014 at 9:52

2 Answers 2

4

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.