Jump to content

ASCX Cannot Use External CSS File?


JustJeff

Recommended Posts

(Newbie here, sorry.)

 

I cannot get an ASCX control to use rules from an external CSS file in a VB.NET app that I inherited (which only uses inline formatting at the moment). It finds and recognizes the file, and the format has been validated.

 

CSS rule: .ais{ font-family: Arial; font-size: 20pt;}

ASPX <head>: <link rel="Stylesheet" type="text/css" href="/App_Code/AMCG_Styles.css" />ASCX: <table id="tblAISContent" class="ais" border="0" cellpadding="0" cellspacing="0" style="width: 900px; height: 425px;" >

 

However, none of the text in the table uses either the font name or size, and no errors are thrown. There are no other CSS files or <style> tags in the app.

 

Any help is greatly appreciated!

 

Jeff

Link to comment
Share on other sites

I'm not sure if browsers care about case in the attribute, but you wrote rel="Stylesheet" with an uppercase S while the standard values are all in lowercase.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...