css and master page problem

css and master page problem

am 05.01.2008 16:59:37 von laziers

Hi,
I have a "little" problem. I'v got a very simple page:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>

TR/xhtml11/DTD/xhtml11.dtd">


Untitled Page





text





I run it, and everything is ok [the text in form is blue], BUT! when I
create a masterpage:

<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Untitled Page







text
runat="server">






the text isn't blue now. What should I do to have a blue text?

Re: css and master page problem

am 05.01.2008 17:20:03 von mark

wrote in message
news:fe0b2e78-e29d-4c47-a0e3-b259d346d9f1@t1g2000pra.googleg roups.com...

> What should I do to have a blue text?

Avoid using object names in your style... If you do a View Source on your
page, you'll see that you don't have a "form1" any more...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Re: css and master page problem

am 05.01.2008 17:59:45 von laziers

> Avoid using object names in your style... If you do a View Source on your
> page, you'll see that you don't have a "form1" any more...

I see, but look at this:

form1 is in the: default.aspx page, ale form2 is in the: default2.aspx
I want blue text in form1 and red in form2,

the style: form {background-color: blue} will not work good.

?

Re: css and master page problem

am 06.01.2008 20:09:34 von DFS

Hi.
We had to acommodate a similar design. We ended up introducing

as the
only child of the form tag, to solve this problem. We applied the style to
the
tag.

Cheers,
-Naraen

wrote in message
news:bfcc4b79-aa75-4738-999b-ef7ec5e494e5@e25g2000prg.google groups.com...
>
>> Avoid using object names in your style... If you do a View Source on your
>> page, you'll see that you don't have a "form1" any more...
>
> I see, but look at this:
>
> form1 is in the: default.aspx page, ale form2 is in the: default2.aspx
> I want blue text in form1 and red in form2,
>
> the style: form {background-color: blue} will not work good.
>
> ?

Re: css and master page problem

am 06.01.2008 23:23:23 von laziers

On 6 Sty, 20:09, "Naraendirakumar R.R." wrote:
> Hi.
> We had to acommodate a similar design. We ended up introducing

as the
> only child of the form tag, to solve this problem. We applied the style to
> the
tag.
>

yes, with dives works fine, thanks

cheers