Use <div> with Styles/Css does not work.

Last post 05-29-2006, 6:09 AM by dabbi2000. 2 replies.
Sort Posts: Previous Next
  •  05-22-2006, 10:11 AM 19368

    Use <div> with Styles/Css does not work.

    Hello,
     
    When I paste some html with Styles/css and <div>. The style are not applied in the Edit Tab but are correctly applied in the preview Tab.
     
    Before I changed the version of the Editor, in the Edit Tab, we can see each <div> like a "MS WORD Text Box" and we could move it with simple drag and drop.
     
    Do you know how to that now ?
     
     
     
     
    Sample Html Code : "
    <HTML>
     <HEAD>
      <STYLE TYPE="text/css">
      <!--
      #Adresse
      {
              position:absolute;
       left:455px;
              top:96px;
       width:258px;
       height:135px;
       font-size:10pt;
       font-family:verdana;
       text-align:left;
      }
    -->
      </STYLE>
     </HEAD>
     <BODY WIDTH="761" HEIGHT="1145">
      <DIV ID="Adresse">
       Mr Nicolas Destroye<BR>
       13 RUE ARSENNE DEBRUYNE<BR>
       59420 MOUVAUX<BR>
      </DIV>
     </BODY>
    </HTML>
     
     
     
  •  05-26-2006, 4:38 AM 19543 in reply to 19368

    Re: Use <div> with Styles/Css does not work.

    I have found the solution :
     
    You have to put de style/css definition directly in the attribut Style of the DIV balise like that :
     
    <DIV ID="Adresse" STYLE="position:absolute;
       left:455px;
              top:96px;
       width:258px;
       height:135px;
       font-size:10pt;
       font-family:verdana;
       text-align:left;
    ">
       Mr Nicolas Destroye<BR>
       13 RUE ARSENNE DEBRUYNE<BR>
       59420 MOUVAUX<BR>
      </DIV>
     
     
    And not in the Head part of the HTML document
     
    Thanks.
  •  05-29-2006, 6:09 AM 19587 in reply to 19543

    Re: Use <div> with Styles/Css does not work.

    use the
    EditorWysiwygModeCss="~/shared.css"
     
    attribute to import your custom style sheet for use in editor!
View as RSS news feed in XML