OK, well, this should fix you up for the time being.
THIS IS A NEAT TRICK.
This one HTML page can be duplicated and can be used for ALL of the pages except the games page.
The only things you need to do are give each page a unique filename AND a unique ID in the body tag. Notice that the body tag for this page says <body id="aboutpage">. You can guess that the name of this page should be about.html. See the bottom of the included CSS for the other known body ID names.
ALL of the pages will be served by the included CSS sheet.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Mirrored from superfunproductions.com/about.html by HTTrack Website Copier/3.x [XR&CO'2010], Fri, 23 Mar 2012 00:40:21 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="en-us" />
<meta name="author" content="Rosalynne Chan" />
<meta name="contact" content="webmaster@superfunproductions.com" />
<meta name="copyright" content="Copyright (c)2013 Super Fun Productions. All Rights Reserved." />
<meta name="description" content="Super Fun Games formed around the idea of quality game apps for all major mobile markets." />
<meta name="keywords" content="super fun games, puzzle, fun games, games, puzzle games, apps, puzzle apps, music block attack, cuddly bears, game apps" />
<title>Super Fun Games</title>
<link rel="stylesheet" type="text/css" href="css/sfg.css" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26578422-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body id="aboutpage">
<div id="wrapup">
<ul id="mainMenu">
<li id="home"><a href="home.html">Home</a></li>
<li id="about"><a href="#">About</a></li>
<li id="games"><a href="games.html">Games</a></li>
<li id="news"><a href="news.html">News</a></li>
<li id="presskits"><a href="presskits.html">Press Kits</a></li>
<li id="faq"><a href="faq.html">FAQ</a></li>
<li id="contact"><a href="contact.html">Contact</a></li>
</ul>
<div class="graybox">
<ul>
<li id="home2"><a href="home.html">HOME</a></li>
</ul>
<ul>
<li><b>Games</b></li>
<li><a href="cuddlybears.html">Cuddly Bears</a></li>
<li><a href="arrow.html">Arrow Climber</a></li>
</ul>
<ul>
<li><a href="CC.html">Crystal Catacombs</a></li>
<li><a href="music_block_attack.html">Music Block Attack</a></li>
<li><a href="snowmanwars.html">Snowman Wars</a></li>
</ul>
<ul>
<li><b>Technology</b></li>
<li><a href="games.html">Games</a></li>
</ul>
<ul>
<li><a href="about.html">About<br/>SFG<br/>Team</a></li>
</ul>
<ul>
<li><a href="about.html">Special Thanks</a></li>
<li><a href="about.html">Who we Support</a></li>
<li><a href="presskits.html">Press Kits</a></li>
</ul>
<ul>
<li><a href="news.html">Recognition<br/>and Awards</a></li>
</ul>
<ul>
<li><b>Other</b></li>
<li><a href="careers.html">Careers</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<ul>
<li><a href="news.html">News</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
</div>
</body>
</html>
Code:
@charset "UTF-8";
body {
width:100%;
font:10px normal Arial, Helvetica, sans-serif;
padding:0;
margin:0;
}
#wrapup {
width:1024px;
padding-bottom:20px; /* space added below the given image height */
margin:0 auto;
}
#mainMenu {
/* outline:1px solid magenta; /* TEST OUTLINE ONLY - DELETE or comment out */
list-style:none; /* --- Makes the bullets go away --- */
overflow:hidden;
padding:20px 0 0 140px; /* --- Take out any default padding and margin on the UL tag --- */
margin:0;
}
#mainMenu li {
position:relative;
float:left; /* --- Make the list go horizontal --- */
}
#mainMenu li + li {
margin-left:30px; /* --- Spacing between list items --- */
}
#mainMenu li li {
float:none;
position:static;
}
#mainMenu li a {
display:block; /* --- Make the entire button are clickable rather than the text alone --- */
width:185px; /* --- Height of buttons --- */
height:78px; /* --- Width of buttons --- */
text-indent: -9999px; /* --- Push the text off screen to hide text --- */
overflow: hidden; /* --- Makes text outside of bounding box hidden --- */
}
/*
#mainMenu li#games ul li a.mba {
background: url(../images/mbagames.jpg) no-repeat;
width: 88px;
height: 40px;
}
#mainMenu li#games ul li a.cb {
background: url(../images/cb.jpg) no-repeat;
width: 88px;
height: 25px;
}
#mainMenu li#games ul li a.snowmanwars {
background: url(../images/snoman.jpg) no-repeat;
width: 88px;
height: 40px;
}
#mainMenu li#games ul li a.arrowclimber {
background: url(../images/ac.jpg) no-repeat;
width: 88px;
height: 40px;
}
#mainMenu li#games ul li a.crystalcatacombs {
background: url(../images/crystalcatacombs.jpg) no-repeat;
width: 88px;
height: 40px;
}
*/
#mainMenu ul {
margin-left:-999em;
top:100%;
left:0;
position:absolute;
}
#mainMenu ul li a {
width: 95px;
}
#mainMenu li:hover ul {
margin: 0;
}
/*
The following rules place the "normal"
state image as the background for our anchor tags
*/
#mainMenu li#home a {
background: url(../images/sfg.png) no-repeat;
width: 68px;
height: 74px;
}
#mainMenu li#about a {
background: url(../images/a1.png) no-repeat;
width: 60px;
height: 24px;
}
#mainMenu li#games a {
background: url(../images/g1.png) no-repeat;
width: 70px;
height: 24px;
}
#mainMenu li#news a {
background: url(../images/n1.png) no-repeat;
width: 60px;
height: 24px;
}
#mainMenu li#presskits a {
background: url(../images/press.png) no-repeat;
width: 76px;
height: 24px;
}
#mainMenu li#faq a {
background: url(../images/faq.png) no-repeat;
width: 60px;
height: 24px;
}
#mainMenu li#contact a {
background: url(../images/c1.png) no-repeat;
width: 80px;
height: 24px;
}
/*
#mainMenu li#careers a {
background: url(../images/careers.png) no-repeat;
width: 88px;
height: 24px;
}
*/
/*
#mainMenu li#beta a {
background: url(../images/b1.png) no-repeat;
width: 88px;
height: 35px;
}
*/
/*
The following rules place the "over"
state image as the background for our anchor tags
when they are hovered over by the mouse
*/
#mainMenu li#home a:hover {
}
#mainMenu li#about a:hover {
background: url(../images/about2.png) no-repeat;
width: 60px;
height: 24px;
}
#mainMenu li#games a:hover {
background: url(../images/games2.png) no-repeat;
width: 70px;
height: 24px;
}
/*
#mainMenu li#careers a:hover {
background: url(../images/careers2.png) no-repeat;
width: 88px;
height: 24px;
}
*/
#mainMenu li#contact a:hover {
background: url(../images/contact2.png) no-repeat;
width: 80px;
height: 24px;
}
#mainMenu li#news a:hover {
background: url(../images/news2.png) no-repeat;
width: 60px;
height: 24px;
}
/*
The following rules place the "down"
state image as the background for our anchor tags
when they anchor tag has the class of current
*/
#mainMenu li#home a.current {
cursor:default; /*--- Show pointer instead of hand cursor for the current page ---*/
}
#mainMenu li#about a.current {
background: url(../images/about.png) no-repeat;
cursor:default;
}
#mainMenu li#games a.current {
background: url(../images/games.png) no-repeat;
cursor:default;
}
#mainMenu li#careers a.current {
background: url(../images/careers.png) no-repeat;
cursor:default;
}
#mainMenu li#contact a.current {
background: url(../images/contact.png) no-repeat;
cursor:default;
}
#gamesMenu {
/* outline:1px solid magenta; /* TEST OUTLINE ONLY - DELETE or comment out */
list-style:none; /*--- Makes the bullets go away ---*/
overflow:hidden;
padding:0 0 0 136px; /* left padding changed from:160px to 136px */
margin:150px 0 0;
}
#gamesMenu li {
position:relative;
float:left; /*--- Make the list go horizontal ---*/
}
#gamesMenu li li {
float:none;
position:static;
}
#gamesMenu li a {
display:block; /*--- Make the entire button are clickable rather than the text alone ---*/
width:165px; /*--- Height of buttons ---*/
height:25px; /*--- Width of buttons ---*/
text-indent: -9999px; /*--- Push the text off screen to hide text---*/
overflow: hidden; /*--- Makes text outside of bounding box hidden ---*/
}
#gamesMenu ul {
margin-left: -999em;
top: 100%;
left: 0;
position: absolute;
}
#gamesMenu ul li a {
width: 95px;
}
#gameMenu s li:hover ul { /* IS THIS A VALID SELECTOR? "s" ? */
margin: 0;
}
/*
The following rules place the "normal"
state image as the background for our anchor tags
*/
#gamesMenu li#mba a {
background: url(../images/music.png) no-repeat;
width: 165px;
height: 25px;
}
#gamesMenu li#cc a {
background: url(../images/crystal.png) no-repeat;
width: 175px;
height: 25px;
}
#gamesMenu li#cb a {
background: url(../images/cuddly.png) no-repeat;
width: 135px;
height: 25px;
}
#gamesMenu li#smw a {
background: url(../images/snow.png) no-repeat;
width: 150px;
height: 25px;
}
#gamesMenu li#ac a {
background: url(../images/climber.png) no-repeat;
width: 135px;
height: 25px;
}
#gamesMenu li#mba a:hover {
background: url(../images/music2.png) no-repeat;
width: 165px;
height: 25px;
}
#gamesMenu li#cc a:hover {
background: url(../images/crystal2.png) no-repeat;
width: 175px;
height: 25px;
}
#gamesMenu li#cb a:hover {
background: url(../images/cuddly2.png) no-repeat;
width: 135px;
height: 25px;
}
#gamesMenu li#smw a:hover {
background: url(../images/snow2.png) no-repeat;
width: 150px;
height: 25px;
}
#gamesMenu li#ac a:hover {
background: url(../images/climber2.png) no-repeat;
width: 135px;
height: 25px;
}
/*
The following rules place the "down"
state image as the background for our anchor tags
when they anchor tag has the class of current
*/
#gamesMenu li#mba a.current {
background: url(../images/music.png) no-repeat;
cursor:default;
}
#gamesMenu li#cc a.current {
background: url(../images/crystal.png) no-repeat;
cursor:default;
}
#gamesMenu li#cb a.current {
background: url(../images/cuddly.png) no-repeat;
cursor:default;
}
#gamesMenu li#ac a.current {
background: url(../images/climber.png) no-repeat;
cursor:default;
}
.graybox { /* THIS CONTAINER div holds the row of lists */
/* outline:1px solid magenta; /* TEST OUTLINE ONLY - DELETE or comment out */
text-align:center; /* centers inline-block objects (the ul's) */
padding-right:12px; /* offsets the lists in .graybox just a tad */
margin-top:620px; /* distance from overhead container */
}
.graybox ul {
/* outline:1px solid yellow; /* TEST OUTLINE ONLY - DELETE or comment out */
display:inline-block; /* sets the ul to an inline-block object so they will align in a row */
vertical-align:top; /* top-aligns the ul boxes */
list-style-type:none; /* removes the bullets */
padding:0; /* removes default padding for bullets */
margin:0; /* removes default margins above and below lists */
}
.graybox ul + ul {
margin-left:18px; /* horizontally separates the list boxes (the ul's) */
}
.graybox li {
text-align:left; /* left-aligns text within each list item */
}
/* anchor treatment (if needed) */
.graybox a {
line-height:1.6; /* height of the list items */
font-size:1.25em;
text-decoration:none;
text-indent:-9999px; /* --- Push the text off screen to hide text --- */
overflow:hidden; /* Stops anchor outline from extending left off-screen */
}
.graybox a:link,
.graybox a:visited {
color:#000;
}
.graybox a:hover {
color:#533996;
}
.graybox a:active {
color:#f00;
}
/* --- REQUIRES: .graybox ul + ul {margin-left:18px;} --- */
.graybox li#home2 a {
display:block;
background:url(../images/superfungames.png) no-repeat;
width:128px;
height:63px;
margin-top:-1px;
}
/* --- REQUIRES: .graybox ul + ul {margin-left:24px;} ---
.graybox li#home2 a {
display:block;
background:url(../images/sfg63.png) no-repeat;
width:63px;
height:63px;
margin-top:-1px;
}
*/
#gamespage {background:#533996 url(../images/games.png) no-repeat scroll 50% 0;}
#gamespage #wrapup {height:994px;padding-bottom:60px;}
#gamespage .graybox {margin-top:620px;}
#aboutpage {background:#533996 url(../images/about.png) no-repeat scroll 50% 0;}
#aboutpage #wrapup {height:1032px;}
#aboutpage .graybox {margin-top:823px;}
#newspage {background:#533996 url(../images/news.png) no-repeat scroll 50% 0;}
#newspage #wrapup {height:610px;}
#newspage .graybox {margin-top:418px;}
#contactpage {background:#533996 url(../images/Contact.png) no-repeat scroll 50% 0;}
#contactpage #wrapup {height:655px;}
#contactpage .graybox {margin-top:462px;}
#mbapage {background:#533996 url(../images/mba.png) no-repeat scroll 50% 0;}
#mbapage #wrapup {height:1226px;}
#mbapage .graybox {margin-top:1034px;}
#ccpage {background:#533996 url(../images/CC.png) no-repeat scroll 50% 0;}
#ccpage #wrapup {height:911px;}
#ccpage .graybox {margin-top:716px;}
#cbpage {background:#533996 url(../images/cb.png) no-repeat scroll 50% 0;}
#cbpage #wrapup {height:865px;}
#cbpage .graybox {margin-top:673px;}
#smwpage {background:#533996 url(../images/smw.png) no-repeat scroll 50% 0;}
#smwpage #wrapup {height:1506px;}
#smwpage .graybox {margin-top:1318px;}
#acpage {background:#533996 url(../images/ac.png) no-repeat scroll 50% 0;}
#acpage #wrapup {height:840px;}
#acpage .graybox {margin-top:656px;}
/* ...etc... */
The height value in #wrapup is the height of the background image.
I hope you are learning something from all of this
Bookmarks