Thursday, September 29, 2011

Floated items and side li tag margin collapse

Lots of discussion about top and bottom margin collapsing.  But I'm most often disoriented when I encounter a li near a floated image.  Typically the image is floated left, but I don't want or need to float what's surrounding it.  Most of the other elements look fine jammed up against the image margin.  Not the LI's.  I want them tucked in a bit more, but their margin starts at the beginning of the floated image, so usually there's no margin at all.

Here's a little fiddle to illuminate.

This fellow has the answer:

.entry-content li {
left: 50px;
position: relative;
}

Thursday, September 8, 2011

Business Catalyst: How to stop sections from being editable

Business Catalyst arbitrarily decides to make sections editable with their "Site Editor" (was "In-Context-Editor").  They pick odd portions: banner headings, logos, etc.  They give a rather lame mechanism to remove these, but it doesn't always work, e.g. if the editable-section happens to be just an image.

To remove the in-context-editing, create a "content module" from the section of the template that is wrongly editable, load the piece of code to that and "Add modules to the Template".
Specifically in the Admin dashboard, top menu Admin, Manage Site-Wide Templates...
Manage Content Holders is in the same general area.

Update 10/18/2011:  Also try removing "permission" to manipulate the template in the Role for the User level.