skip to Main Content

I have a page on my website rendered using a simple html file, services.html, which renders a div element fine on my laptop using chrome but when I try to visit the services page on my website on my mobile using any browser it doesn’t render the div at all.

Here is my services.html file;

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <title>JU Physiotherapy - Services</title>
</head>

<body>
    <div style="background-color: rgb(32 56, 100);width:200px;height:200px;">
    </div>
</body>
</html>

2

Answers


  1. I’m not positive this will fix the issue, but your code has a typo in the RGB, as you are missing a comma. Try this:

    <div style="background-color: rgb(32, 56, 100); width: 200px; height: 200px;">
    </div>
    
    Login or Signup to reply.
  2. You are missing a comma in the RGB thing.

    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="UTF-8" />
      <title>JU Physiotherapy - Services</title>
    </head>
    
    <body>
        <div style="background-color: rgb(32, 56, 100); width:200px; height:200px;">
        </div>
    </body>
    </html>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search