x First time here? Check out the FAQ
Join us a the Umbraco event of the year - get your Codegarden 14 early bird ticket today
  • Avatar87posts124karma

    How do you change the markup

    Hamish started this topic October 6, 2010 @ 04:40, Go directly to the topic solution

    Not sure why, but Contour generates a <br style="clear: both;"> within each contour field holder before the holder closes.

    Is there a way of tidying up the markup that is generated by Contour?

  • Ismail Mayat posted this reply October 6, 2010 @ 12:06


    You can update the ascx file RenderForm.ascx but if you upgrade you will lose changes or you could target the br using css and set to display none e.g

    .contourFieldSet br{display:none;}



  • Avatar609posts733karma
    Comment with ID: 49064
    Rik Helsen posted this reply October 6, 2010 @ 05:27

    Since there a lot of divs with float:left css properties, removing the inline html will require you to add the clear:both to the css file instead, and have a div to apply it to...


  • Avatar87posts124karma
    Comment with ID: 49102
    Hamish posted this reply October 6, 2010 @ 11:38

    Maybe this is a feature that could be added - Have the ability to customise the markup a little better without having to worry about losing changes when you upgrade..

    I just think the br and possibily the wrapping div around the field is a little excessive (i don't normally need them when styling with css)... I just like html to be as minial as possible :)


Please login or Sign up To post replies