0

I have content editor web part that I have applied html for a table. I would like to upload an image (through HTML script), but I want the image to appear behind the table. I tried using the following code to add the image behind the table, but the image did not appear.

<table align="center" style="width: 94%; height: 96%, background="myimage.gif">

Not sure what I am doing incorrectly. Can anyone help me with the issue?

Thanks!

2

you can use the below css code for background image:

 background-image: url("Image.jpg");
 background-repeat:no-repeat;
 background-position:top;
 background-size:cover;
0

Upload your image "myimage.gif" to any document library then right click on image name in document library and get its url. Paste this url in background property.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.