Skip to content

Instantly share code, notes, and snippets.

@danielbonifacio
Last active February 9, 2018 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbonifacio/325fd00a876d64aa8e41f34b30502b35 to your computer and use it in GitHub Desktop.
Save danielbonifacio/325fd00a876d64aa8e41f34b30502b35 to your computer and use it in GitHub Desktop.
estrutura inicial do texto com background image
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BG Exemplo</title>
</head>
<style media="screen">
body {
background: url('bg.jpg');
background-repeat: no-repeat;
background-size: cover;
max-width: 100wh;
padding: 0;
margin: 0;
}
</style>
<body>
<div class="outer-text">
<div class="text">
<span>Daniel.</span>
<p>Manja muito dos CSS!</p>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment