Bootstrap row isn't displaying for some reason

Bootstrap row isn't displaying for some reason
0

#1

For some reason, my row with a paragraph isn’t displaying on the page. Only the header area and blank page. I’m not sure what I’m doing wrong. Any suggestions would be awesome!

Thanks,
Kyle

<!DOCTYPE html>
<html lang="en">
<head>
  
  <!--  Meta  -->
  <meta charset="UTF-8" />
  <title>My Portfolio Site</title>
  
  <!--  Styles  -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css>
  <link rel="stylesheet" type="text/css" href="styles/style.css">
<body style="background-color: #581845;>  
  <div class="row">
    <div class="col-md-12 bg-primary fixed-top">
      <div class="mx-auto col-md-9 navbar bg-primary">
        <a class="nav-item mr-auto" href="#top"><img src='//discourse-user-assets.s3.amazonaws.com/original/3X/8/7/8747f59767345ed5fcdd23436270b8fff12ab150.jpg' style="max-height:5em"></a>  
        <a class="nav-item nav-link text-white" href="#about">About</a>
        <a class="nav-item nav-link text-white" href='#portfolio'>Portfolio</a>
        <a class="nav-item nav-link text-white" href='#contact'>Contact</a>
      </div>
    </div>
  </div> 

  <div class="row">
    <div class="col-xs-12 bg-light">    
      <p>Musician, creator, and student of web development. My hope is to help bridge the technological gap for authors, artists, and other creative beings to bring awareness to their work.</p>                                                       
    </div>
  </div>   
</body>
</html>

#2

It’s probably behind the navbar. Try adding some top padding to your <body> element.
Relevant: https://getbootstrap.com/docs/4.0/components/navbar/#placement

A bit off-topic, but you’re missing double quotes on the second <link>'s href attribute, and the <body>'s style attribute. The closing </head> tag is also missing.


#3

Thanks! The link came in handy. I changed the class to sticky-top and it solved the problem. You were right, it was hidden behind the navbar!


#4

@kevcomedia got you on this.
But the color in your editor is a dead give away that the prior element is not completed properly, which will cause some problems.

image

image

Cheers,
-WWC