Jump to content

<picture> tag not appearing photo in live server


amirelgohary1990

Recommended Posts

Hello,
photos do not appear in the following cases
1- inserting photo inside <picture> tag (In Server Side Only), Working normally in local
2-   Not Working when site domain only www.mysite.com ,, Working when site domain = www.mysite.com/index.php 
 

<picture class="hover1 runHover2">
 <img  src="assets/img/central-business-district-singapore.jpg">
</picture>


Note:

-The path is right, and when opening inspect to check the photo, I find it
- Tried to change the path to
/assets/img/central-business-district-singapore.jpg  or www.mysite.com/assets/img/central-business-district-singapore.jpg , but not solved

Link to comment
Share on other sites

You might want to check that your CSS is the same on both servers and that is correct. For example if you have `display:none;` the image won't show. 

Ensure that the file permissions for the image are set correctly. The web server should have read access to the image file.

If you're using an Apache web server, check your .htaccess file and server configuration for any rules that might be affecting image loading.

Edited by Strider64
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.