Re: CSS - how to reference the CSS in a web page?
- From: "Dan Aldean" <doruroman@xxxxxxxxxx>
- Date: Fri, 26 Jan 2007 19:47:33 -0500
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
.
- References:
- CSS - how to reference the CSS in a web page?
- From: Dan Aldean
- Re: CSS - how to reference the CSS in a web page?
- From: senfo
- CSS - how to reference the CSS in a web page?
- Prev by Date: Re: Web.Config File - logging custom events in SQL Server.
- Next by Date: Re: CSS - how to reference the CSS in a web page?
- Previous by thread: Re: CSS - how to reference the CSS in a web page?
- Next by thread: Re: CSS - how to reference the CSS in a web page?
- Index(es):