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.
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.
ASCX Cannot Use External CSS File?
in CSS
Posted
(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