Re: strange behavior of tag <p>

  •  11-12-2009, 2:00 PM

    Re: strange behavior of tag <p>

    Alexxxx:
    p{margin:0} doesn't work.
     
    look here http://tinymce.moxiecode.com/examples/full.php
     
    I only want the same behavior on pressing enter in editor as in this freeware as well as in all other WYSIWYG  editors. . I still can't work in cute editor.
     
    When setting the BreakElement to p, you hit the enter key in Cute Editor you create a new p-tag(paragraph tag).

    Depending on your CSS and preferences a few things can happen. Above all you have to know that browsers and editors often have their own preferences for handeling the margin (room around the border of the tag) and padding room between the content and the border of the tag) of a p-tag.
     
    Please try the following code:
     
    <html>
    <head>
    </head>
    <body>
    <p>Hello World 1</p>
    <p>Hello World 2</p>
    <p>Hello World 3</p>
    </body>
    </html>
     
     
     
    <html>
    <head>
    <style>p{margin:0}</style>
    </head>
    <body>
    <p>Hello World 1</p>
    <p>Hello World 2</p>
    <p>Hello World 3</p>
    </body>
    </html>
     
    Hope it helps.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread