+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / <br> tags inserted in before closing generic content tag????

&lt;br&gt; tags inserted in before closing generic content tag????

4 posts, 0 answered
  1. Kurt
    Kurt avatar
    11 posts
    Registered:
    25 Oct 2010
    23 Apr 2012
    Link to this post
    Any idea how to get rid of these rogue <br> tags that are inserted right before the closing tag of the Generic Content div wrapper? They're unwanted space in the layout.
    Here's what I insert into the generic content field:
    http://cl.ly/2o2a2P1s0B0u0m0D2u2y
    Here's the markup produced: Notice the rogue <br> tag.
    http://cl.ly/1q3D2Y230R1m3v3e2u3f
  2. Kurt
    Kurt avatar
    11 posts
    Registered:
    25 Oct 2010
    23 Apr 2012
    Link to this post
    If anyone is interested, I figured out how to hide this rogue <br> tag via CSS.
    Assuming content is wrapped in a div of ."sfContentBlock".
    .sfContentBlock>br:last-of-type {
        display: none;
    }
    This will select the last <br> tag within the generic content markup and obliterate it. I couldn't find a better way to do this, so if someone knows one, please share away.
  3. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    25 Apr 2012
    Link to this post
    Hi Kurt,

    We have provided a few possible solutions to the problem in the following forum thread. I believe you might find it useful.

    Regards,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    14 Apr 2013
    Link to this post
    Hello Kurt,

    Just wanted to let you know that this bug is fixed for Sitefinity 5.2. Please excuse us again if this has caused you any inconvenience!

    All the best,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered