I've been working on learning Bootstrap and decided to challenge myself by trying to recreate this website:
However, I'm encountering difficulties when it comes to overriding Bootstrap and incorporating my own custom font. I attempted to add a Google font using the following code, but it didn't work:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
In my CSS file, I have added the following styling for the font:
html{
font-family:"Roboto", "Arial";
font-size:20px;
font-weight:300;}
I am also struggling with styling an image on the page:
<section class="container">
<img class="rounded-circle profile-pic" src="/resources/img/profile_pic.jpg" alt="">
</section>
And here is the CSS I attempted to use for styling the image:
section img .profile-pic{
margin-left:150px;
}