Re: CSS - how to reference the CSS in a web page?



Thank you for the reply.
Can you tell m please how I can verify the rendered HTML? Is it thru View
Code?
Unfortunately I cannot check the solution in .NET 2.0 until monday, as I
have 1.0 at home.
Where exactly can I use the <style> as I do not see any <HTML> structure?

"senfo" <enceladus311@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23EhIZdaQHHA.4260@xxxxxxxxxxxxxxxxxxxxxxx
Dan Aldean wrote:
Hi,

I use ASP.NET 2.0 and I created a style***, but I don't know how to
make it visible to a web form "MyWebPage.aspx" that uses the master page.
I put a reference to the css in the .master but it's not visible to the
newly created page. MyWebPage.aspx doesn't have a
<head>
<link rel="style***" type="text/css" href="mystyle.css" />
</head>structure.

Use this, instead:

<style type="text/css" media="all">
@import "mystyle.css";
</style>

Afterwards, verify the rendered HTML to make certain that the path and
everything are what you want. You don't have to do anything fancy to make
CSS work in a master page.

--
Sean

website: http://senfo.blogspot.com


.