Results 1 to 9 of 9

Thread: text box without line break?

  1. #1
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default text box without line break?

    Hi,

    I am using a text box as a code container (Ctrl +T), but the default text box appears to always add a line break (<P>&nbsp;</P>) even when the text box is empty?

    Unfortunately the code im entering in the text box is to creat a table and i require this to match up to an exsiting table but it appears the line break is causing a gap that i cannot appear to remove?

    Can this line break be removed in anyway?

    Regards, J
    Last edited by jofan; 06-27-2010 at 07:38 AM.

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default

    Ok, have managed to get round this by inserting the code straight into the main HTML editor (without the line break), but still curious if this can be done?

  3. #3
    Senior Member mia's Avatar
    Join Date
    Apr 2010
    Location
    Germany /Deutschland
    Posts
    809

    Default

    After you inserted the code you add:
    <!--
    And after tag:
    -->

    This gets rid of the unwanted line break NOF creates by inserting code.
    http://www.nof-community.de
    NOF-Community, Hilfe, Support, Tutorials, Anleitungen, Tipps und Tricks für Netobjects Fusion und SwissKnife Komponenten

  4. #4
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default

    Thanks mia

    J

  5. #5

    Default

    Try holding down shift then hit enter, it will eliminate the auto <P> space

  6. #6
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default

    Quote Originally Posted by mia View Post
    After you inserted the code you add:
    <!--
    And after tag:
    -->

    This gets rid of the unwanted line break NOF creates by inserting code.
    Hi Mia,

    Hope you could explain a little more with this?

    I have two tables, ive inserted some code but cannot get them to match up together without spaces in between.
    Ive tried your suggestion but not sure if ive placed them in the right place.

    Hope you can explain

    Regards, J

  7. #7
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    In any text box, even empty, there will typically be the following code:

    HTML Code:
    <p style="margin-bottom: 0px;">&nbsp;</p>
    This is usually in a grey highlight, meaning you can't edit it. But it you put
    HTML Code:
    <!--
    in front of it, you can then put
    HTML Code:
    -->
    after it, which turns the code into a comment, like this:

    HTML Code:
    <!--
    <p style="margin-bottom: 0px;">&nbsp;</p>
    -->
    Quite clever, really. I wish I'd thought of it.

    -RayC

  8. #8
    Senior Member mia's Avatar
    Join Date
    Apr 2010
    Location
    Germany /Deutschland
    Posts
    809

    Wink

    Quite clever, really. I wish I'd thought of it
    Don't tell me, Ray, you didn't know this trick already.
    http://www.nof-community.de
    NOF-Community, Hilfe, Support, Tutorials, Anleitungen, Tipps und Tricks für Netobjects Fusion und SwissKnife Komponenten

  9. #9
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default

    Thanks Ray, Mia,

    Not had chance to try this yet but sounds like what im after.

    J

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •