1

I have a problem with automatically getting a (non-editable) double-space whenever hitting ENTER when editing a wiki article in Fogbugz 8.

In Fogbugz 7.x, if I remember right, to fix this exact issue, I added a snippet of code in the CSS section after:

/* Paragraph Styles */

/* Example: p.ExtraPadding { padding: 25px; } */

I believe I added:

    p{
      margin-top:0px;
      margin-bottom:0px;
    }

However, that doesn't seem to work in Fogbugz 8.0, or I'm adding it to the wrong spot in the file.

Help?

flag

1 Answer

3

First, make sure you're adding your that custom style to the bottom of the CSS section of your template. This will ensure that your custom styles will override any equally-specific styles coming from the FogBugz 8 template.

Second, because FogBugz 8 now renders a number of different pages within the template (wiki search results, the article info page, etc.), you will need to use a slightly different CSS selector in order to override the default <p> styles for wiki articles:

.article-content p {
   margin: 0px;
}

Alternatively, you could make your custom styles take precedence (regardless of where they are in the CSS section of your template) by using the !important modifier:

.article-content p {
   margin: 0px !important;
}

You should still use the new .article-content class selector whenever you are modifying styles that are only intended to apply to wiki article content. If you don't use this selector, your custom styles might bleed over into other pages that also make use of your wiki's template in...unusual...ways. ;)

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.