Jump to content

ASCX Cannot Use External CSS File?

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!



Link to post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...