View Single Post
  #7 (permalink)  
Old May 29th, 2010, 03:21 PM
flapjack flapjack is offline
Authorized User
 
Join Date: Apr 2010
Posts: 18
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Imar,

The menus look fine on plantet wrox .com in my browser. Here is source 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">
<head><title>
Home Page
</title>
<link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><style type="text/css">
.ctl00_Menu1_0 { background-color:white;visibility:hidden;display:none;positio n:absolute;left:0px;top:0px; }
.ctl00_Menu1_1 { text-decoration:none; }
.ctl00_Menu1_2 { }
.ctl00_Menu1_3 { }
.ctl00_Menu1_4 { }
.ctl00_Menu1_5 { }

</style></head>
<body>
<form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1Mg9kFgJmD2QWAgIDD2QWBAIDDzwrAA0 CAA8WAh4LXyFEYXRhQm91bmRnZAwUKwAFBQ8wOjAsMDoxLDA6M iwwOjMUKwACFhIeBVZhbHVlBQRIb21lHglEYXRhQm91bmRnHgh TZWxlY3RlZGceBFRleHQFBEhvbWUeC05hdmlnYXRlVXJsBQ0vR GVmYXVsdC5hc3B4HgdFbmFibGVkZx4KU2VsZWN0YWJsZWceB1R vb2xUaXAFEkdvIHRvIHRoZSBob21lcGFnZR4IRGF0YVBhdGgFD S9kZWZhdWx0LmFzcHhkFCsAAhYQHwQFB1Jldmlld3MfAQUHUmV 2aWV3cx8FBRUvUmV2aWV3c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1r" />

</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>


<script src="/WebResource.axd?d=z-XpvNHb6f13tlz9BnY8aQ2&amp;t=633739885393582448" type="text/javascript"></script>


<script src="/WebResource.axd?d=mQ_2HVjpoe7-fA37qsdWKw2&amp;t=633739885393582448" type="text/javascript"></script>
<div>

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBAKDhb6/CwLlh5KuCQL77aOhAwLhg4f+Co57Z8jQpQjuKHuZ7RQjBFvJ5D TM" />
</div>

<div id= "PageWrapper">
<div id= "Header">Header goes here<a href="./" class="HeaderLink"></a></div>
<div id= "MenuWrapper">
<a href="#ctl00_Menu1_SkipLink"><img alt="Skip Navigation Links" src="/WebResource.axd?d=sO_e03zm0YIL1OWwHmhY8A2&amp;t=63 3739885393582448" width="0" height="0" style="border-width:0px;" /></a><table id="ctl00_Menu1" class="MainMenu ctl00_Menu1_2" cellpadding="0" cellspacing="0" border="0">
<tr>
<td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="Go to the homepage" id="ctl00_Menu1n0"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="/Default.aspx">Home</a></td>

</tr>
</table></td><td style="width:10px;"></td><td style="width:10px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="Reviews published on this site" id="ctl00_Menu1n1"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="/Reviews/Default.aspx">Reviews</a></td>
</tr>
</table></td><td style="width:10px;"></td><td style="width:10px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="About this Site" id="ctl00_Menu1n2"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="/About/Default.aspx">About</a></td>

</tr>
</table></td><td style="width:10px;"></td><td style="width:10px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="Log in to this web site" id="ctl00_Menu1n3"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="/Login.aspx">Login</a></td>
</tr>
</table></td><td style="width:10px;"></td>
</tr>
</table><div id="ctl00_Menu1n1Items" class="ctl00_Menu1_0 DynamicMenuStyle ctl00_Menu1_5">
<table border="0" cellpadding="0" cellspacing="0">

<tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="All Reviews Grouped by Genre" id="ctl00_Menu1n4">
<td><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a class="ctl00_Menu1_1" href="/Reviews/AllByGenre.aspx">By Genre</a></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="All Reviews" id="ctl00_Menu1n5">
<td><table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr>
<td style="white-space:nowrap;width:100%;"><a class="ctl00_Menu1_1" href="/Reviews/All.aspx">All Reviews</a></td>
</tr>
</table></td>
</tr>
</table><div class="ctl00_Menu1_0" id="ctl00_Menu1n1ItemsUp" onmouseover="PopOut_Up(this)" onmouseout="PopOut_Stop(this)" style="text-align:center;">
<img src="/WebResource.axd?d=2cIN_y3VbQQEUxt0d9q7WFtbzrUmZCVm _vE5FWViolM1&amp;t=633739885393582448" alt="Scroll up" />
</div><div class="ctl00_Menu1_0" id="ctl00_Menu1n1ItemsDn" onmouseover="PopOut_Down(this)" onmouseout="PopOut_Stop(this)" style="text-align:center;">

<img src="/WebResource.axd?d=VuW5e84Qa5zhSRAHRezOBW3Ai617i3Jn CUzMIKfq96M1&amp;t=633739885393582448" alt="Scroll down" />
</div>
</div><div id="ctl00_Menu1n2Items" class="ctl00_Menu1_0 DynamicMenuStyle ctl00_Menu1_5">
<table border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="Contact Us" id="ctl00_Menu1n6">
<td><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a class="ctl00_Menu1_1" href="/About/Contact.aspx">Contact Us</a></td>
</tr>

</table></td>
</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" title="About Us" id="ctl00_Menu1n7">
<td><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a class="ctl00_Menu1_1" href="/About/AboutUs.aspx">About Us</a></td>
</tr>
</table></td>
</tr>

</table><div class="ctl00_Menu1_0" id="ctl00_Menu1n2ItemsUp" onmouseover="PopOut_Up(this)" onmouseout="PopOut_Stop(this)" style="text-align:center;">
<img src="/WebResource.axd?d=2cIN_y3VbQQEUxt0d9q7WFtbzrUmZCVm _vE5FWViolM1&amp;t=633739885393582448" alt="Scroll up" />
</div><div class="ctl00_Menu1_0" id="ctl00_Menu1n2ItemsDn" onmouseover="PopOut_Down(this)" onmouseout="PopOut_Stop(this)" style="text-align:center;">
<img src="/WebResource.axd?d=VuW5e84Qa5zhSRAHRezOBW3Ai617i3Jn CUzMIKfq96M1&amp;t=633739885393582448" alt="Scroll down" />
</div>
</div><a id="ctl00_Menu1_SkipLink"></a>

</div>
<div id= "MainContent">

<h1>

Hi there visitor and welcome to Planet Wrox</h1>
<p class="Introduction">
We're glad you're paying a visit to <a href="http://www.PlanetWrox.com">
www.PlanetWrox.com</a>, the coolest music community site on the Internet.
</p>
<p class="Introduction">
Feel free to have a <a href="Default.aspx">look around</a>; as there are lots of
interesting <b>reviews and concert pictures</b> to be found here.

</p>
<p class="Introduction">
You can <a href="Login.aspx">log in</a> here!</p>

</div>
<div id="SideBar">Select a Theme
<select name="ctl00$lstPreferredTheme" onchange="javascript:setTimeout('__doPostBack(\'ct l00$lstPreferredTheme\',\'\')', 0)" id="ctl00_lstPreferredTheme">
<option selected="selected" value="Monochrome">Monochrome</option>

<option value="DarkGrey">DarkGrey</option>

</select>
</div>
<div id= "Footer">Footer goes here</div>
</div>


<script type="text/javascript">
//<![CDATA[
var ctl00_Menu1_Data = new Object();
ctl00_Menu1_Data.disappearAfter = 500;
ctl00_Menu1_Data.horizontalOffset = 0;
ctl00_Menu1_Data.verticalOffset = 0;
//]]>
</script>
</form>
</body>

--------------------------------------------------------------------------

and here is css file monochrome css.

--------------------------------------------------------------------------

*
{
font-family: Arial, Sans-Serif;
}

body
{
/*
Clears white space around the body except for the top which gets 10 pixels.
*/
margin: 10px 0 0 0;
}

a
{
/*
Clears the underline on normal links, and give them #308462 as the color.
*/
color: #308462;
text-decoration: none;
}

a:hover
{
/*
Underlines links when the users hover the mouse over them.
*/
text-decoration: underline;
}

h1
{
/*
Makes h1 elements smaller than their browser default.
*/
font-size : 20px;
}

.Introduction
{
font-style: italic;
color: #003399;
}

#PageWrapper
{
/*
Sets the total width for the entire page.
*/
width: 844px;
background-color: #cccccc;
}

#Header
{
/*
Gives the header the same width as the PageWrapper. The height creates some room for the logo
that is set with the background-image.
*/
background-image: url(Images/Header.jpg);
width: 844px;
height: 86px;
}

.HeaderLink
{
/*
The #HeaderLink is nested in the #Header. It provides a link to the homepage.
*/
width: 844px;
height: 86px;
display: block;
}

#MenuWrapper
{
/*
The menu spans the page width, right below the header.
At the top and left a few pixels padding is applied to create some room.
*/
background-image: url(Images/MenuBackground.jpg);
width: 827px;
height: 36px;
padding-top: 7px;
padding-left: 17px;
}

#MenuWrapper a
{
/*
Links in the Menu are white. This gets overriden by styles in chapter 7.
*/
color: #fff;
}

.MainMenu
{
/*
The Menu gets a white border on all four sides.
*/
border: 1px solid white;
width: 814px;
height: 19px;
background-color : #cccccc;
}

#MainContent
{
/*
Defines the main content area. The #MainContent element has a minimum height of 500 pixels, but can grow if necessary.
The font-size is 80% of its parenty element, which in this case comes down to 80% of the font
the user has specified as the default font in the browser.
*/
font-size: 0.8em;
width: 659px;
border-left: 1px solid white;
border-right: 2px solid white;
float: left;
background-color: #e1e1e1;
min-height: 500px;
padding: 10px;
}

#Sidebar
{
/*
The SideBar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
on a dmall page, the element gets a minimum height of 500px. This is ignored by IE 6.
*/
font-size: 0.8em;
background-image: url(Images/Sidebar.jpg);
background-repeat: no-repeat;
background-color: #cccccc;
width: 152px;
min-height: 500px;
padding-top: 10px;
padding-left: 10px;
float: left;
}

#Footer
{
/*
The footer is positioned below all other content (yet still within PageWrapper).
At the top, it gets a border with a dashed style, while all other sides have no border.
clear: both is used to clear the impact of the float properties used for #MainContent and #SideBar.
*/
clear: both;
height: 37px;
background-color : #bee4cf;
color: White;
text-align: center;
font-size: 0.7em;
font-weight: bold;
line-height: 37px;
}

.MyButton
{
color: #308462;
}

.DynamicMenuStyle
{
z-index: 1000;
border: 3px solid red;
}
Reply With Quote