How to embed picture in css by codes(not url)

Anonymous

Question Description

How to embed picture in css by codes(not url) ?

I know there is a way so you can code the image in the .css file (not including by url).
It's sth. like use some 8AJ2OFJ192UOASF...... thing to represent a picture...
Any ideas?

Tutor Answer

psshenoy
School: Rice University

hi,
you can embed the image by converting it into base64 encoding and providing it as string. something like
url(data:image/gif;base64, followed by base64 encoded string) in the css tag. Refer below urls for more info:
http://stackoverflow.com/questions/1124149/is-embedding-background-image-data-into-css-as-base64-good-or-bad-practice
http://webcodertools.com/imagetobase64converter

regards.

flag Report DMCA
Review

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors