Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Style sheet question

3 views
Skip to first unread message

Zach

unread,
May 24, 2012, 8:48:44 AM5/24/12
to
Could someone please tell me why the style sheet has no effect?

Zach.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
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>Test</title>
<link href="Style.css" rel="stylesheet" type="text/css" />
</head>
<body >
<form id="form1" runat="server">
<div>
<h1>This is a test page</h1>
</div>
</form>
</body>
</html>

<!---
The style sheet (Style.css)

body
{
background-color:Yellow;
}
--->

Arne Vajhøj

unread,
May 30, 2012, 9:25:08 PM5/30/12
to
On 5/24/2012 8:48 AM, Zach wrote:
> Could someone please tell me why the style sheet has no effect?

You code works fine here.

Arne

Zach

unread,
Jun 1, 2012, 12:57:55 PM6/1/12
to
"Arne Vajhøj" <ar...@vajhoej.dk> wrote in message
news:4fc6c876$0$284$1472...@news.sunsite.dk...
I couldn't find out what was going wrong in the actual code I was writing.
Then I gave up using a separate style sheet and put the styles in
<style>...</style>
and no probem, so I took the easy way out. The application has been
uploaded and is running OK.

Thanks,
Zach,

Message has been deleted
0 new messages