N
Nathan Sokalski
I have an ASPX file in which there are properties that depend on the CSS
properties in a *.css file specified in a link tag, such as:
<link href="mystyles.css" rel="stylesheet" type="text/css"/>
Is there a way to get the classes/properties from this file for use in the
codebehind? In my specific case, I want to know the border-left-width and
border-right-width values, or if these properties are not specified, the
border-width. My reason for needing these is because I must specify the
width for a certain control, but in order to fit inside the containing
control, the sum of the width and the border must be less than a certain
amount. Any ideas? Thanks.
properties in a *.css file specified in a link tag, such as:
<link href="mystyles.css" rel="stylesheet" type="text/css"/>
Is there a way to get the classes/properties from this file for use in the
codebehind? In my specific case, I want to know the border-left-width and
border-right-width values, or if these properties are not specified, the
border-width. My reason for needing these is because I must specify the
width for a certain control, but in order to fit inside the containing
control, the sum of the width and the border must be less than a certain
amount. Any ideas? Thanks.