I’m using ‘w3’ at the beginning of everything because I’m finding it helps separate it from the html. CSS file isn’t really in very good order, I’m still trying to figure that out.
I would be grateful for any suggestions/comments good or bad. Body content/text is stupid but was only put in there as a way of testing things out, so ignore it.
I dont seem to be able to get it to post with the same format that I have, its not easy to look at as it is here.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"
<link rel="stylesheet" href="styles/css-practice.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine">
<style>
body {font-family: "Lato", sans-serif}
.mySlides {display: none}
.w3-tangerine {
font-family: "Tangerine", serif;
}
</style>
<title>CSS PRACTICE</title>
</head>
<body>
<div class="w3-header w3-top w3-tangerine">
Allure Beauty
</div>
<div class="w3-container w3-content-body w3-center w3-padding-64" style="max-width:800px">
<h2 class="w3-container w3-wide w3-center ">Allure Beauty</h2>
<p class="w3-opacity"><i>Everyone is beautiful</i></p>
<p class="w3-justify">
Allure Beauty will help you enhance your beauty. We specialise in make-up
and instant sun tans (spray tanning). All of our
consultants are trained to the highest standard, and all of our treatments come with a 100% money
back guarantee.
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,
discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus
Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise
on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum
dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested.
Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in
their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,
discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus
Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise
on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum
dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested.
Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in
their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
</p>
</div>
</body>
</html>
/>
html,
body {
font-family: Verdana, sans-serif;
font-size: 15px;
line-height: 1.5
}
html {
overflow-x: hidden
}
@media screen and (min-width:600px) {
nav {
float: left;
width: 25%;
}
section {
margin-left: 25%;
}
}
@media screen and (max-width:599px) {
nav li {
display: inline;
}
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.w3-top,
.w3-bottom {
position: fixed;
width: 100%;
z-index: 1
}
.w3-top {
top: 0;
}
.w3-container {
padding: .01em 16px;
}
.w3-center {
text-align: center;
}
.w3-black{
color: #000;
}
.w3-xxlarge {
font-size: 36px;
}
.w3-header{
top: 0;
left: 0;
padding: 2px;
color: #fff;
background: #000;
width: 100%;
height: 55px;
text-align: center;
font-size: 36px;
position: fixed;
}
.w3-justify {
text-align: justify;
}
.w3-content {
max-width: 980px;
margin: auto;
}
/*
.after-w3-content{
clear: top; should I be using this instead of w3-content-body padding: 45
} at the moment its not working correctly with the text
*/
.w3-content-body {
max-width: 980px;
margin: auto;
padding: 45px; /* drops it down below the header bar */
}
.w3-wide {
letter-spacing: 4px
}
.w3-opacity{
opacity: 0.60;
filter: alpha(opacity=60); /* this line and next stolen not sure what they do yet */
-webkit-backface-visibility: hidden /* think this is for safari or something */
}