EDIT: SEE NEXT POST
Something like this?
Code:
<!doctype html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WB 20th Anniversary !!</title>
<style>
.auto-style1 {text-align: center;}
a:link {text-decoration: none}
body {background: url('http://www.whambamgames.com/wb/events/spade/yybg.jpg');
font-family: verdana; font-size: 16px; line-height: 26px; padding-top: 10px; overflow-y: scroll;
padding-left: 3%;
padding-right: 3%;
padding-bottom: 3%;
}
.hightlighting {color: white; background: #DB0409; padding: 5px}
a:hover { background: #DB0409}
/* the image */
#twenty {width: 250px; display: block; margin: auto; z-index:1; }
/* the imgage is contained in a fixed div now (see below), so we have to make a clone in order to make sure that the fixed div behaves like a relative div */
#dummy_twenty {
border: medium #DB0409;
position: relative;
width: 250px;
display: block;
margin: auto;
margin-bottom: 1px;
z-index: 1;
left: 0;
background: white;
height: 180px;
}
#img_container {
border: thick #DB0409 solid;
position: fixed;
z-index: 3;
left: 50%;
transform: translate(-50%);
}
/* we should not see parts of the content area when it scrolls up */
#hider {position: fixed; left:0; top:0; right:0; height:60px; z-index: 1; background: white}
/* the logo-div */
#logo_div {position: fixed; left:0; width: 100%; background: black; color: white; top: 0px; height: 59px; z-index: 2}
/* the black header-div */
#black_div {position: fixed; left:0; width: 100%; background: black; color: white; top: 60px; height: 80px; z-index: 2}
/* the part of the menu to the left of the image */
#left {position: absolute; left: 5%; margin-top: 25px; z-index: 2; width: 45%}
/* the part of the menu to the right of the image */
#right {position: absolute; right:5%; margin-top: 25px; z-index: 2; width: 45%; text-align: right}
/* the menu-items */
#menu_item_home, #menu_item_event_rules, #menu_item_pre_register, #menu_item_formats, #menu_item_ticket_grid, #menu_item_prize_drawing, #menu_item_raffle_ticket_list {color: white; padding: 5px; padding-left: 10px; margin-right: 10px; white-space: nowrap}
#content_area {
background: #FFFFFF;
position: relative;
width: 99%;
height: auto;
margin-top: -25px;
margin-bottom: 5px;
border: 1px solid black;
margin-left: auto;
margin-right: auto;
padding: 20px 10px 5px 10px;
border-radius: 5px;
box-shadow: 5px 10px 18px #888888;
}
/* image to the left of the central image */
#img_to_the_left {position: absolute; left: calc(100% - 275px); top: -75px; margin-top: -10px; width: 130px; height: 55px; overflow: hidden; }
/* image to the right of the central image */
#img_to_the_right {position: absolute; right: calc(100% - 285px); top: -75px; margin-top: -10px; width: 130px; height: 55px; overflow: hidden;}
@media screen and (max-width: 1174px) {#twenty {width: 200px; margin-top: 10px}}
@media screen and (max-width: 1174px) {#content_area {margin-top: 0}}
@media screen and (max-width: 1174px) {#img_to_the_left {left: calc(100% - 245px)}}
@media screen and (max-width: 1174px) {#img_to_the_right {right: calc(100% - 245px)}}
@media screen and (max-width: 1140px) {#twenty {width: 150px; margin-top: 30px}}
@media screen and (max-width: 1140px) {#img_to_the_left {left: calc(100% - 220px)}}
@media screen and (max-width: 1140px) {#img_to_the_right {right: calc(100% - 220px)}}
@media screen and (max-width: 1090px) {#left {width: 280px; left:0; margin-top: 15px}}
@media screen and (max-width: 1090px) {#right {width: 280px; right:0; margin-top: 15px; right: 10px}}
@media screen and (max-width: 1090px) {#twenty {width: 200px; margin-top: 10px}}
@media screen and (max-width: 1090px) {#img_to_the_left {left: calc(100% + 10px); margin-top: 0; width: 110px}}
@media screen and (max-width: 1090px) {#img_to_the_right {right: calc(100% - 10px); margin-top: 0; width: 110px}}
@media screen and (max-width: 995px) {#img_to_the_left {left: calc(50% - 0px); margin-top: 0; width: 110px}}
@media screen and (max-width: 995px) {#img_to_the_right {right: calc(50% - 10px); margin-top: 0; width: 110px}}
@media screen and (max-width: 732px) {#left {width: 150px; margin-top: 0}}
@media screen and (max-width: 732px) {#right {width: 160px; margin-top: 0}}
@media screen and (max-width: 732px) {#img_to_the_left {margin-top: 15px; }}
@media screen and (max-width: 732px) {#img_to_the_right {margin-top: 15px; right: calc(50% - 20px) }}
@media screen and (max-width: 560px) {#black_div {top: 130px;}}
@media screen and (max-width: 560px) {#content_area {margin-top: 30px;}}
@media screen and (max-width: 560px) {#twenty {margin-top: -3px; width: 150px; border: 1px solid #DB0409}}
@media screen and (max-width: 560px) {#hider {height: 130px;}}
@media screen and (max-width: 560px) {#img_to_the_left {margin-top: -15px; }}
@media screen and (max-width: 560px) {#img_to_the_right {margin-top: -15px; }}
@media screen and (max-width: 520px) {#img_to_the_left {display: none }}
@media screen and (max-width: 520px) {#img_to_the_right {display: none }}
.auto-style3 {
color: #DB0409;
font-size: x-large;
}
</style>
<script>
function highlighting(lochash,the_class)
{
if(location.hash==lochash)
{document.getElementById(the_class).className='hightlighting'}
else {document.getElementById(the_class).className=null}
}
</script>
<script>
function content_change()
{
/* FILLING THE CONTENT-AREA (=A DIV HAVING ID='content_area' ON IT) WITH CONTENT FROM A HIDDEN DIV.*/
document.getElementById('content_area').innerHTML = document.getElementById(location.hash.substring(1,location.hash.length)).innerHTML
/* HIGHLIGHTING CURRENT MENU ITEMS */
highlighting('#home','menu_item_home') //if(location.hash=="#home"){document.getElementById('menu_item_home').className='hightlighting'}
highlighting('#event_rules','menu_item_event_rules') //if(location.hash=="#event_rules"){document.getElementById('menu_item_event_rules').className='hightlighting'}
highlighting('#pre_register','menu_item_pre_register') //if(location.hash=="#pre_register"){document.getElementById('menu_item_pre_register').className='hightlighting'}
highlighting('#formats','menu_item_formats') //if(location.hash=="#formats"){document.getElementById('menu_item_formats').className='hightlighting'}
highlighting('#ticket_grid','menu_item_ticket_grid') //if(location.hash=="#ticket_grid"){document.getElementById('menu_item_ticket_grid').className='hightlighting'}
highlighting('#prize_drawing','menu_item_prize_drawing') //if(location.hash=="#prize_drawing"){document.getElementById('menu_item_prize_drawing').className='hightlighting'}
highlighting('#raffle_ticket_list','menu_item_raffle_ticket_list') //if(location.hash=="#raffle_ticket_list"){document.getElementById('menu_item_raffle_ticket_list').className='hightlighting'}
}
window.onhashchange=content_change;
</script>
</head>
<body>
<div id="img_container" >
<img id="twenty" src="http://www.whambamgames.com/wb/events/spade/20th2.png" alt="" >
</div>
<div id="dummy_twenty" ></div>
<div id="hider">
</div>
<div id="black_div" >
<div id="left" >
<a id="menu_item_home" href="#home" >Home</a>
<div id="home" style="display: none; ">
<p class="auto-style1"><span class="auto-style2">S.P.A.D.E.<br/>Spade Players Appreciation Day Event<br/>Saturday, April 21st 2018
- From 12p PST to 12a PST</span></p>
<p class="auto-style1">For 20 years.. from the Zone to WGC & now SHG players have
supported our ALT formats, Tournaments & Events.<br/>We would like to Thank
YOU for that loyalty by giving away Twenty 3 month Yacht Club Memberships!</p>
<p class="auto-style1">To give every player a chance at winning - not just those
who can be here for the entire event,<br/>we will be using our unique Raffle Ticket
System for awarding the YCM prizes.</p>
<p class="auto-style1">Click any link above to find out more! </p>
<table style="border:0; width: 100%; text-align: center" >
<tr>
<td>
<div style="font-family: 'Century Gothic', sans-serif; margin-bottom: 20px; font-size:small;">
<a href="http://www.whambamgames.com/" target="_blank" style="background: white">
<img style="width: 49px; height: 50px; text-align: center; border: 0" alt="" src="http://www.whambamgames.com/wb/images/yy2.gif">
</a>
<b style="font-family: arial; font-size: 12px">
<a href="mailto:whambamtournys@hotmail.com" style="background: white"><br>whambamtournys@hotmail.com</a><br>
<span class="auto-style14">WHAM BAM TOURNAMENTS</span><br>
<span style="color:#008000">We</span> <span style="color:#800000">strive</span>
<span style="color:#808000">to</span>
<span style="color:#000080">be</span>
<span style="color:#800080">different.</span><br>
<span class="auto-style14">Since 1998</span>
</b>
</div>
</td>
</tr>
</table>
</div>
<a id="menu_item_event_rules" href="#event_rules" >Rules</a>
<div id="event_rules" style="display: none">
Shows on rules
</div>
<a id="menu_item_pre_register" href="#pre_register">Pre-Register</a>
<div id="pre_register" style="display: none; ">
Shows on pre-register
</div>
<a id="menu_item_formats" href="#formats">Formats</a>
<div id="formats" style="display: none">
Shows when formats load
</div>
<!-- image to the left of the central image -->
<div id="img_to_the_left" >
<img src="http://www.whambamgames.com/wb/events/spade/wham1.png" alt="" style="width: 100%; margin-top: 0px">
</div>
</div>
<div id="right" >
<!-- image to the right of the central image -->
<div id="img_to_the_right" >
<img src="http://www.whambamgames.com/wb/events/spade/wham1.png" alt="" style="width: 100%; margin-top: 0px">
</div>
<a id="menu_item_ticket_grid" href="#ticket_grid">Ticket Grid</a>
<div id="ticket_grid" style="display: none">
Shows when 'ticked grid' is clicked on
</div>
<a id="menu_item_prize_drawing" href="#prize_drawing" >Prize Drawing</a>
<div id="prize_drawing" style="display: none; ">
Shows when 'prize drawing' is clicked on
</div>
<a id="menu_item_raffle_ticket_list" href="#raffle_ticket_list" >Raffle Ticket List</a>
<div id="raffle_ticket_list" style="display: none">
Shows when 'raffle ticket list' is clicked on
</div>
</div>
</div>
<!-- The region in the body where the script inserts the content of a hidden div (a 'page') depending on the href value of the clicked link: -->
<div id="content_area" ></div>
<!-- At the end of the body section: -->
<script>
/* Loading the first 'page' (event_rules) at site entrance. If, in the menu, the ID on the id belonging to the menu-link for the first 'page' is not event_rules, replace '#event_rules' below with your own ID (preceded by the hash symbol) */
if(window.location.hash==''){window.location.replace('#home');}
/* Executing the function given above (see the head) when the (real) page loads */
setTimeout("content_change()",0)
</script>
</body>
</html>
Bookmarks