Empty divs add nbsp in layout

Options
Whenever you add an empty div into a layout in BBNC, it automatically inserts a non-breaking space ( ) into the empty div. This is problematic when you are using an empty div to clear floats in your layout.



For example, I can't use code like this, because it breaks the flow when it puts a non-breaking space in there:


<div style='clear:both;'></div>



This should be an option when designing a layout.


The workaround I am using is to manually add that div through jQuery when the page is loaded.



Can you please put this on the list to fix in an upcoming update to BBNC?



Thank you,


George
Tagged:

Comments

  • I'd say make a class with the clearfix solution and then create a div with that class and wrap whatever chunk of information you're trying to drop onto another line in the div.



    Or play around with assigning that class to whatever you're trying to clear.



    http://nicolasgallagher.com/micro-cle...



    Hope this answer is relevant.



    Thanks
  • Interesting.


    Thanks for sharing!



    I still hope that Blackbaud fixes the issue of automatically inserting content in the DIV where it wasn't supposed to be or strictly coded in. :)
  • Oh I absolutely agree. There are even more problems than what you mention such as all these random, extra styling their UI applies when you're not working strictly in the HTML but instead when you're using the WYSIWYG.

Categories