[BUGFIX] change markup for news list #373
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
News list had a bug and therefore did not scale properly depending on screensize.
(There are somtimes big gaps between elements etc...)
Absolute positioning and fixed heigths are very hard to handle in responsive designs.
Therefore the markup was changed:
Bootstrap grid classes are used now, this saves code & prevents positioning related bugs/problems.
The grid items are positioned with display: 'flex', which allows sizing the rows without using explicit, fixed values.
If no height is given to the
- Tag it looks like this:Because I wanted to keep the design nearly the same as before, I decided to set a fixed height to the article element, so this is what this PR contains:
If you have any requests before merging, keep me informed.