I am doing my first website using xampp and I have problems while changing specific parts of the text font on it. I managed to change the font of the whole body but i want a different font for the title, what i did was to create a rule in css with the name of the font and then using it in the part i want to change (h1). It probably is a stupid mistake so forgive my ignorance.
body {
font-family: 'Lato', sans-serif;
}
img {
max-width: 100%;
}
.quitar-float {
float: none;
}
.espacio-arriba {
/*margin-top: 100px*/
}
.pacifico {
font-family: 'Pacifico', cursive;
}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="//fonts.googleapis.com/css?family=Pacifico" rel="stylesheet" type='text/ccs'>
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet" type='text/ccs'>
<div class="col-nd-3 center-block quitar-float text-center espacio-arriba" id="principal">
<img src="imgs/descarga.png">
<h1 class= "pacifico">hello world</h1>
<h2>This is my first website</h2>
<nav>
<a href="http://google.com">Galerie</a>
<a href="http://facebook.com">About</a>
</nav>
</div>
tag not the actual title of the site.
– Nadia Rodriguez Nov 02 '17 at 19:45