Hi,
I'm making a customer control navigation bar. How do I link up to my CSS file for this control? This is my code:
<%@ Control
Language="vb"
AutoEventWireup="false"
Codebehind="Title.ascx.vb"
Inherits="CHMA.Title"
TargetSchema="%>
<HEAD>
<link href="styles/title.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<img src="images/top.jpg">
<div id="navbar2">
<ul>
<li id="li1">
something
<li id="li2">
something
<li id="li3">
something
<li id="li4">
something
<li id="li5" >
something</li>
</ul>
</div>
</body>
However it's not picking up the style.
Is there a different way for me to reference a CSS sheet within a custom control?
Thanks for your help!
Cen
I'm making a customer control navigation bar. How do I link up to my CSS file for this control? This is my code:
<%@ Control
Language="vb"
AutoEventWireup="false"
Codebehind="Title.ascx.vb"
Inherits="CHMA.Title"
TargetSchema="%>
<HEAD>
<link href="styles/title.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<img src="images/top.jpg">
<div id="navbar2">
<ul>
<li id="li1">
something
<li id="li2">
something
<li id="li3">
something
<li id="li4">
something
<li id="li5" >
something</li>
</ul>
</div>
</body>
However it's not picking up the style.
Is there a different way for me to reference a CSS sheet within a custom control?
Thanks for your help!
Cen