Assign a CSS to a DIV
Posted on 2010-08-30
OK, let me first start by saying I'm NEW to ASP.net, so I hope this question doesn't sound stupid!
I have a DIV inside a Content Place Holder so I can change the width and background color to something different from the Master Page.
Here is an example of what it looks like now:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<div style="width: 1000px; background-color:White">
I would like to move these settings to a CSS file instead of having them set in the form, so I can swap out files at will. I would like the CSS file to contain my width: 1000px and background-color:White so I can change these files in out based on a report selected.
You see I have a Crystal Report Viewer inside a Content Place Holder and I would like to change the width of the DIV when the report is Landscape vs. Portrait, so that the report shows behide a White Background vs. a green background on the Master Page.