Question about why container div isn't visible?

Why isn’t the container div visible as the background?

  <title>Styling in React</title>
  <script src="[email protected]/dist/react.js"></script>
  <script src="[email protected]/dist/react-dom.js"></script>
  <script src=""></script>
    #container {
      padding: 40px;
      background-color: #111;
      border: solid blue 3px;
      width: 500px;
      height: 600px;
  <div id="container"></div>
<script type="text/babel">
  var Letter = React.createClass({
    render: function() {
	var letterStyle = {
        padding: 50,
        margin: 10,
        backgroundColor: this.props.bgcolor,
        color: "#333",
        display: "inline-block",
        fontFamily: "monospace",
        fontSize: "32",
        textAlign: "center"
        return (
          <div style={letterStyle}>
  var destination = document.querySelector("#container");
      <Letter bgcolor="#58B3FF">A</Letter>
	  <Letter bgcolor="#FF605F">E</Letter>
	  <Letter bgcolor="#FFD52E">I</Letter>
	  <Letter bgcolor="#49DD8E">O</Letter>
	  <Letter bgcolor="#AE99FF">U</Letter>

The container div appears when I try out your code. It shows up with the #111 background and a blue border. Are you seeing something different?


Wow, this is weird. No, but what I do see varies significantly by browser: (btw, my env is MS Surface Book with Win10), and in no case do I see the background div. I’m just opening directly from a file on my hard drive. Ideas? Thanks!


Looks like I’ll have to upload Firefox and Edge separately.



That is really strange! Below is what I see when I preview in Chrome on Windows 10.

Here is a zip of the HTML file. Does this look like what you have? (20.6 KB)

Actually please re-zip… the only thing in the zip is the image file. Thanks.

works for me, mac ff/chrome/safari

OK - dohhh… what happened was I copy/pasted from your lecture… and hidden gibberish characters got inserted during that process… ouch… learned that the hard way…
anyway… i deleted the css, and manually retyped it… all is well… thanks.