Skip to content
← Back to Community
how can i insert a photo in css
Profile icon
NIHALRANJANRANJ

how can i insert a photo in css? i can't do it. If my photo name is "me", so send me the code .

Voters
Profile icon
NIHALRANJANRANJ
Comments
hotnewtop
Profile icon
sn236
background-image: 'filename'; background-repeat: no-repeat; background-size: cover;

Just add this

Profile icon
NIHALRANJANRANJ

@sn236

not working.

Profile icon
sn236

@NIHALRANJANRANJ
You cannot insert a photo in css. With css you can add an background image.

Profile icon
MrVoo

You can add an image with CSS using the background-image property