Text Editor Responsive Styles
Layout Tables
Tables can be organised into groups of 2 or 3 columns and sized as required on the desktop version of the site. Colspan
and Rowspan
should not be used for padding or layout as they will interfere with the respsonsive layouts.
In order to make a table responsive. Use the source code editor <> add one of the tags in the list below to the source code of the opening <table>
tag. For example to create a 3 column grid you would use: <table id="RD-rte-table-3col">
, this will have no effect on the desktop layout but will ensure that the table collapses elegantly for mobile users.
- Three column grid. Add this tag to the table
<table id="RD-rte-table-3col">
- Two column grid, equal column widths 50/50. Add this tag to the table
<table id="RD-rte-table-2col">
- Two column grid, unequal column widths 70%/30%. Add this tag to the table
<table id="RD-table-2col-right">
- Two column grid, unequal column widths 30%/70%. Add this tag to the table
<table id="RD-table-2col-left">
One Column Mobile Layout
If you would like the final mobile design to appear in one column rather than two an additional tag is required: <table id="RD-rte-table-3col" class="RD-mobile-1col">
Events Layout
Some events pages use a 3 column grid with navigation in the 3rd column. You can use this tag <table id="RD-event-table">
to create this layout. However, I would recommend that these pages are rebuilt as templates to make the process simplier.
Data Tables
The above method of organising information is only appropriate for layout and not tabular data for which standard tables should be used. Data tables can use any table layout methods such as colspan or rowspan and as many columns as required. Adding this id tag id="RD-data-table"
to a table tag <table id="RD-data-table">
will improve the default styling but will not effect the table layout.
YouTube Videos
YouTube embed codes are not respsponsive by default so an additional line of code is required to wrap the embed code: <div class="RD-youtube-embed"> YOUTUBE EMBED HERE </div>
Tables: 3 Column layout - id="RD-rte-table-3col"
|
|
|
Kayleigh Garthwaite |
|
|
|
|
Tables: Two column Grid 50/50 - id="RD-rte-table-2col"
Membership Services Directors Dr Mark Doidge Professor Janice McLaughlin Professor Chrissie Rogers |
Publications Directors Professor Richard Waller Professor Catherine Pope Dr Jason Arday |
Tables: Two column Grid 30/70- id="RD-table-2col-right"
Professor Gurminder K Bhambra is BSA President. Gurminder is Professor of Postcolonial and Decolonial Studies and Director of Research and Knowledge Exchange at the University of Sussex. Professor Bhambra’s term of office runs from 1 January 2022 until 31 December 2024. |
Tables: Two column Grid 70/30- id="RD-table-2col-left"
Professor Gurminder K Bhambra is BSA President. Gurminder is Professor of Postcolonial and Decolonial Studies and Director of Research and Knowledge Exchange at the University of Sussex. Professor Bhambra’s term of office runs from 1 January 2022 until 31 December 2024. |
Tables: Event Table with right-side column - id="RD-event-table"
Vestibulum cursus eu augue id euismodLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum cursus eu augue id euismod. Duis sollicitudin vel felis porttitor faucibus. Mauris nec mauris vitae lectus finibus faucibus sit amet quis eros. Donec quis eros cursus erat laoreet sodales. Morbi lacus sapien, posuere imperdiet posuere a, vestibulum non ligula. Aenean rhoncus accumsan odio vel lacinia. Nulla tincidunt dictum ligula eu varius. Mauris gravida ex erat, a suscipit dolor vestibulum et. Maecenas orci velit, malesuada eget finibus ut, blandit eu nisl. Pellentesque ante eros, aliquam sed velit nec, iaculis pharetra arcu. In pulvinar sapien libero, in pellentesque ligula ultricies a. Ut consectetur, nisl quis efficitur bibendum, dui orci tincidunt nisi, eget accumsan tortor dolor nec eros. Proin ut arcu purus. Phasellus lobortis laoreet metus, id facilisis massa varius feugiat. |
Tables: Data-Table with styling css - id="RD-data-table
Membership Category |
Country for postal correspondence* |
|||
UK |
Category A Country |
Category B Country |
||
Full Membership |
Waged |
£130 |
£154 |
£81 |
Unwaged |
£62 |
£81 |
£81 |
|
Full-time student or Early Career Researcher** |
£62 |
£81 |
£81 |
|
Retired |
£62 |
£81 |
£81 |
|
Teacher (Available to teachers in schools and FE Colleges) |
£62 |
£81 |
£81 |
YouTube Video - class="RD-youtube-embed"