Skip to content

Instantly share code, notes, and snippets.

@ej159
Created January 27, 2014 14:27
Show Gist options
  • Select an option

  • Save ej159/8649456 to your computer and use it in GitHub Desktop.

Select an option

Save ej159/8649456 to your computer and use it in GitHub Desktop.
Global styles
body {
margin: 0;
padding: 0;
font-size: 100%;
text-align: left;
background: #e0e0e0;
color: #333;
}
/* Global styles */
* {margin: 0; padding: 0; border: 0;}
span {color: orange}
p, ul, p a, h2 {font-family: Arial, Helvetica, sans-serif}
/* Heading styles */
h1 {margin-left: 10px; font-family: Georgia, serif; color: #333; float: left; font-weight: normal; margin-left: 10px; font-size: 1.55em}
h1 a:link, h1 a:visited, h1 a:active {text-decoration: none; color: navy; font-weight: normal}
h1 a:link span, h1 a:visited span, h1 a:active span {text-decoration: none; font-weight: normal}
h1 a:hover {color: ; text-decoration: none; font-weight: normal}
h1 a:hover span {color: #333; text-decoration: none; font-weight: normal}
h3 a, h3 a:link, h3 a:hover {font-weight: normal} /* styling for h3 heading links */
h4 a, h4 a:link, h4 a:hover, h5 a:link, h5 a:hover {font-weight: bold} /* styling for other heading links */
h2 {margin: 0; padding-left: 10px; font-size: 0.75em; background-color: #333; color: #fff; line-height: 2.0em} /* headings on black backgrounds */
h3, h4, h5 {font-family: Georgia, serif; margin: 20px 0 0 10px}
h3 {font-size: 1.25em; line-height: 1.25em; font-weight: normal}
h4 {font-size: 0.90em; line-height: 0.90em; font-weight: bold}
h5 {font-size: 0.70em; line-height: 0.70em; font-family: Arial, Helvetica, sans-serif; font-weight: bold} /* appears like bold paragraph text */
/* Text styles */
p {margin: 10px; font-size: 0.70em; line-height: 1.75em}
p.updated {margin-left: 10px; font-size: 0.60em; line-height: 0.60em; letter-spacing: 0.05em; color: #888}
#siteimg p { /* This is the large text in the site img div */
margin: 0 0 0 10px; /* removed usual top and bottom margin from paragraph to avoid layout breaking */
padding-left: 10px;
padding-top: 15px;
font-family: Georgia, serif;
font-size: 1.45em;
line-height: 1.05em;
font-weight: normal;
letter-spacing: -0.05em;
}
acronym {border-bottom: 1px dashed #333; cursor: help}
ul {margin-left: 10px; font-size: 0.70em; line-height: 1.75em; list-style: inside square}
/* Paragraph Links */
a {color: #00A2FF; font-weight: bold; text-decoration: none} /* The blue colour */
a:link {color: #00A2FF; font-weight: bold; text-decoration: none}
a:hover {color: #333; font-weight: bold; text-decoration: none}
/* Divs */
#container {
width: 770px; /* Suits an 800x600 page, allowing for scrollbar */
background: white;
overflow: hidden
}
#topbar { /* Top bar, can be used for extra links etc */
width: 770px;
height: 25px;
background: #333;
}
#hdr { /* Header/Banner area */
width: 770px; /* Suits an 800x600 page, allowing for scrollbar */
height: 1.5em; /* Same as h1 line-height */
line-height: 1em;
background: white;
}
#navbar { /* Main Navigation area */
width: 770px; /* Suits an 800x600 page, allowing for scrollbar */
height: 2em;
background: #f0f0f0; /* Light Grey */
}
#siteimg { /* Large Site Image */
width: 770px; /* Suits an 800x600 page, allowing for scrollbar */
background: url('images/siteimage.jpg') #fff; /* Light Grey */
position:relative;
}
#lftcol {
float: left;
width: 200px;
background: transparent;
overflow: hidden
}
#rgtcol {
margin: auto;
position: relative;
float: left;
padding-left: 70px;
width: 570px;
background: transparent;
overflow: hidden;
}
#bttmbar { /* bottom bar, containing top button and copyright info etc */
float: right;
width: 570px;
height: 3em;
line-height: 3em;
background: #fff;
overflow: hidden
}
/* Main Navigation */
#nav ul {display: inline}
#nav li {display: inline}
#nav a {
line-height: 30px; /* same as height of nav bar */
margin-left: 10px;
display: inline;
font-weight: bold
}
#nav a span {color: #333}
/* Forms, Input boxes and buttons */
form.login {float: right; height: 3em; line-height: 3em; margin: 10px 0 0 0; width: 8.0em;}
input.login {border: 1px solid #333; width: 6em; font-size: 0.95em;}
input.loginbttn {border: 0px solid #fff; width: 3em; background: #00A2FF; color: #fff; font-size: 1.0em}
/* Images */
img.rightimg {float: right; margin-left: 10px}
img.leftimg {float: left; margin-right: 10px}
img.languageimg {float: right; margin: 4px 2px 0 0} /* used for the language flags */
<head>
<title>Bit Tutor</title>
<link rel="stylesheet" type="text/css" href="onlinebusiness.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="David Reeder" />
<meta name="Copyright" content="Copyright (c) Bit Tutor" />
</head>
<body>
<div id="container"> <!-- container div contains all the content divs -->
<div id="hdr"><!-- header -->
<h1><a href="index.html"><span>Bit</span>Tutor</a></h1>
</div> <!-- End of header -->
<div id="navbar"><!-- navbar -->
<ul id="nav">
<li><a href=""><span>> </span>Us</a></li>
<li><a href=""><span>> </span>The Story</a></li>
<li><a href=""><span>> </span>Services</a></li>
</ul>
</div> <!-- End of navbar -->
<div id="siteimg"><p>Want to learn English?</p></div>
<div id="rgtcol">
<h3>What we offer...</h3>
<p>
We provide tailored individual lessons to students looking to improve their English. Lessons can take place in several ways:</p>
<ul>
<li>Over Skype</li>
<li>Comprehensive proof-reading</li>
<li>Personalised lesson plans</li>
</ul>
</div> <!-- end of rgtcol div -->
<div id="bttmbar">
<p><a href="#topbar" class="topbar"> Copyright © BitTutor 2014 </p>
</div> <!-- end of bttmbar div -->
</div> <!-- end of container div -->
</body>
</html>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment