Welcome! Log In Create A New Profile

Advanced

Re: Images loaded but not displaying

Ian Hobson
July 16, 2016 05:40AM
Hi skorpinok

Two points:

1) Use correct HTML, or you can only blame yourself if different
browsers mangle it each in their own way.

The structure is
<!DOCTYPE html> Html 5 only.
<html>
<head>
<title ....>

</head>
<body>
page content properly nested.

</body>
</html>
(eof)

2) The src url takes its root as the location of the current page
(unless overridden with a base tag in the head area).

My guess is you need
<img src="/images/infographic.jpg" ....

Regards

Ian

On 16/07/2016 09:31, skorpinok wrote:
> Hi, i have installed nginx/1.2.1 on a debian 7 server, the image seems to
> have been loaded but shows broken & are not displayed on my index.html
> page
>
> here is what did,
>
> html>
> <head>
> <title>Welcome to nginx!</title>
> </head>
> <body bgcolor="white" text="black">
> <center><h1>Welcome to nginx!</h1></center>
> </body>
> </html>
>
> </head>
> <body>
>
> <img src="/usr/share/nginx/www/images/infographic.jpg" alt="infographic"
> width="800" height="800">
>
> </body>
> </html>
>
>
>
> please suggest me how to fix this ?
>
> Regards
> skorpinok
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Images loaded but not displaying

skorpinok July 16, 2016 04:31AM

Re: Images loaded but not displaying

Ian Hobson July 16, 2016 05:40AM

Re: Images loaded but not displaying

skorpinok July 16, 2016 05:56AM

Re: Images loaded but not displaying

pratyush July 16, 2016 11:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready