MSL has written some CSS to assist you in styling your news list as either a grid of cards or a block list. Comments within the code make it easy to understand and customise colours and fonts. These styles are responsive, adjusting to all screen sizes. To apply them, create a News List widget on your webpage following the step-by-step instructions below, and copy the provided CSS code.
Pre-set layouts using the News List widget:
TABLE OF CONTENTS
You can access this feature from your MSL website. Only Content Editors with access to Website Admin can access the Website Pages window.
For further information, see News Widgets.
How to Style a News List into a Grid
- Log in to your MSL website.
- From the Admin dropdown, select Website Admin. The Website Admin window is displayed.
- Click Edit Pages. The Website Pages window with a list of website pages you have permission to edit is displayed.
- Next to the relevant page, select the checkbox.
- Click Edit. The Edit Page window is displayed.
- Select the Widgets tab. The Widgets section is displayed.
- In the Add New Widget section, within the General section, select News List. The Widget Editor window is displayed.
- In the Organisation field, either:
- Start typing the Name of your Organisation or the Organisation ID, then select the relevant one from the dropdown that is displayed.
- Click the Grouping Tree icon (). The grouping tree is displayed. Click Expand () to display the contents of a node, and click one item to select. The selected item is entered into the Organisation field.
- In the Wrapper div CSS class field, enter cardStyling newslist.
- Complete the remaining fields as required and click Save.
- Click Content, and from the Widgets dropdown, select the widget. The News List widget is entered into the editor.
- Select the CSS tab and after downloading the Example CSS gridStyles.zip, copy and paste the content into the CSS field. To download the file, see Download Example CSS.
- Select the Save/Exit tab. The Save Options section is displayed.
- In the Update Notes field, enter any relevant notes, then click Publish. You are returned to the Edit Page window.
How to Style a News List into Blocks
- Log in to your MSL website.
- From the Admin dropdown, select Website Admin. The Website Admin window is displayed.
- Click Edit Pages. The Website Pages window with a list of website pages you have permission to edit is displayed.
- Next to the relevant page, select the checkbox.
- Click Edit. The Edit Page window is displayed.
- Select the Widgets tab. The Widgets section is displayed.
- In the Add New Widget section, within the General section, select News List. The Widget Editor window is displayed.
- In the Organisation field, either:
- Start typing the Name of your Organisation or the Organisation ID, then select the relevant one from the dropdown that is displayed.
- Click the Grouping Tree icon (). The grouping tree is displayed. Click Expand () to display the contents of a node, and click one item to select. The selected item is entered into the Organisation field.
- In the Wrapper div CSS class field, enter cardStyling newslist.
- Complete the remaining fields as required and click Save.
- Click Content, and from the Widgets dropdown, select the widget. The News List widget is entered into the editor.
- Select the CSS tab and after downloading the Example CSS NewsBlocks.zip, copy and paste the content into the CSS field. To download the file, see Download Example CSS.
- Select the Save/Exit tab. The Save Options section is displayed.
- In the Update Notes field, enter any relevant notes, then click Publish. You are returned to the Edit Page window.
Download Example CSS
To download the attached Example CSS, click the filename.