Re: <div> formatting problem

  •  01-10-2007, 11:25 AM

    Re: <div> formatting problem

    what if you setting these styles through code dynamically and can't put them in a css file?  Right now I am putting styles within a script block of the html that the editor is displaying. 
     
    Example:
    string strStyle = "<script type="text/css"> .page{background-color:Blue;}</script>";
    string strHTML = "<html><head>" + strStyle + "</head><body class='page'>test.....</body></html>";
    Editor1.Text = strHTML;
     
    In this example style do not display in the Normal or Preview mode.  Is there some way to get the Editor to use these styles?  This worked in a previous version.  If there is no workaround are there any earlier version that support asp.net 2.0 where this is not broken?
View Complete Thread