Dear Imar
I am truly sorry that it must be beginning to feel to you that I am like a pest. I am though truly hung up at this very basic early concept of correct access to and use of a style sheet.
1. The virtual path property on my web site is set to /How and Why Wonder Books Web Site.
2. I am now trying to simply get my default aspx (non master-pages version) to display correctly.
3. Default.aspx is sitting in the root. The style sheet styles.css is sitting in a Styles directory which is in the root.
4.
Diagnostic scenarios
a.
Include the root slash in the following link to the styles sheet -
<link href="/Styles/Styles.css" rel="stylesheet" type="text/css" />
This produces a result for the default.aspx, i.e. the words are all there, but the style sheet as pointed to by the generated HTML is the error one â generated HTML =
Code:
<head><title>
Start up page for How and Why Wonder Books Web Site
</title>
<style type="text/css">
</style>
<link href="/Styles/Styles.css" rel="stylesheet" type="text/css" /></head>
b.
Remove the root slash and use the following link to the styles sheet -
<link href="Styles/Styles.css" rel="stylesheet" type="text/css" />
This produces a blank white screen, but the style sheet as pointed to by the generated HTML is the correct one â generated HTML =
Code:
<head><title>
Start up page for How and Why Wonder Books Web Site
</title>
<style type="text/css">
</style>
<link href="Styles/Styles.css" rel="stylesheet" type="text/css" /></head>
5. If I change the virtual path property on my web site to be set to just the slash, i.e. /, I get the correct style sheet being generated in either method of linking, but in neither case do I actually get anything come up on the page.
It seems, as a bottom line, that I can either get a correctly generated style sheet, or a page with something showing on it, but not both.
I have included the text of the style sheet in a previous post.
The text of the default.aspx file is
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ODefault.aspx.vb" Inherits="_Default" %>
<!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 runat="server">
<title>Start up page for How and Why Wonder Books Web Site</title>
<style type="text/css">
</style>
<link href="/Styles/Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="PageWrapper">
<div id="Header">Header Goes Here</div>
<div id="MenuWrapper">Menu Goes Here</div>
<div id="MainContent">
<h1 align="center" style="color: #0066CC">How and Why Wonder Books</h1>
<p align="center" style="color: #336600">Welcome to an information site for this book series, which was published in various guises from the
early 1960s to the mid 1990s.
<br />
Through these pages you will find out about the fourteen different edition
types, the various changes in cover design (both back and front),
<br />
the breadth of content of each title,
and many other interesting facts about this much loved, and still sought after, series.</p>
<table class="style1">
<tr>
<td class="style3">
Edition Types</td>
<td class="style7">
Theme Groups</td>
</tr>
<tr>
<td class="style2">
<ul class="style4">
<li>UK Early</a></li>
<li>UK Classic</li>
<li>UK Middle</li>
<li>UK Late</li>
<li>USA Early-1</li>
<li>USA Early-2</li>
<li>USA Classic</li>
<li>USA New 1970s</li>
<li>USA Allan Early 1980s</li>
<li>USA PSS Early 1980s</li>
<li>USA PSS Mid to Late 1980s</li>
<li>USA PSS New Titles Late 1980s</li>
<li>USA Activity Wonder Mid 1980s to Early 1990s</li>
<li>USA Activity Fun Mid 1990s</li>
</ul>
</td>
<td valign="top">
<ul class="style4">
<li>History and Prehistory</li>
<li>Geography and Geology</li>
<li>Mathematics</li>
<li>Physics and Chemistry</li>
<li>Biology and Botany; including Palaeo- studies</li>
<li>Astronomy</li>
<li>Science (General and other Sciences)</li>
<li>Transport and Travel</li>
<li>Human Civilization</li>
</ul>
</td>
</tr>
<tr>
<td class="style5">
Publishers</td>
<td class="style8">
Authors</td>
</tr>
<tr>
<td class="style2">
<ul class="style6">
<li>Transworld Publishers</li>
<li>Grosset and Dunlap</li>
<li>Allan Publishers</li>
<li>Price Stern Sloan</li>
</ul>
</td>
<td valign="top">
<ul>
<li>A to E</li>
<li>F to J</li>
<li>K to P</li>
<li>Q to U</li>
<li>V to Z</li>
</ul>
</td>
</tr>
</table>
</div>
<div id="Sidebar">Sidebar Goes Here</div>
<div id="Footer">Footer Goes Here</div>
</div>
</form>
</body>
</html>
I look forward to your further advice, as this is really blocking my progressing with your book, as if I can't master the basics I have no confidence to proceed to the more complicated stuff and thus actually implement my web site, for which I have already paid domain parking fees, so I am anxious to get this project moving along.
Best regards
Philip