Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

Modifiable markup should be as simple as possible.  HTML that has been copied from other sites and pasted into uPortal may not render correctly if the markup depends upon external CSS definitions and/or javascript that is not available to uPortal.

CSS Naming Conventions

Best Practices

  • Use classes instead of ids whenever possible
  • Separate class names by dashes as opposed to underscores
  • Prefix classes with namespace
  • Class names should be semantic rather than stylistic
    • class="portlet-titlebar" rather than class="big-red-bar"

Reference

Bootstrap CSS

uPortal 4.1x and 5.0 include bootstrap, so and markup that depends on bootstrap CSS classes should render as expected.

Reference