Changes between Version 1 and Version 2 of Ticket #50909, comment 14
- Timestamp:
- 08/12/2020 02:38:21 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50909, comment 14
v1 v2 24 24 25 25 === TL;DR 26 Add it to the the very top, or very bottom of your stylesheet (if the top doesn't work). Alternatively, search to find the last instance of the `img` selector in your CSS, and add it there. 26 Add it to the the very top, or very bottom of your stylesheet (if the top doesn't work). Alternatively, search to find the last instance of the `img` selector in your CSS, and add it there. 27 27 28 28 === The Explanation: 29 29 30 CSS, a Cascading StyleSheet, is read by the browser top to bottom. If there are identical selectors in the same or other CSS files, which ever one is at the bottom will take priority. Stylesheets added to a page one after another will be treated as if they were just added on to the end of the first.30 CSS, a Cascading StyleSheet, is read by the browser top to bottom. If there are identical selectors in the same or other CSS files, whichever one is at the bottom will take priority. Stylesheets added to a page one after another will be treated as if they were just added on to the end of the first. 31 31 32 32 For example, if a style sheet has `img { max-width: 100%; height:auto; }` and then the same sheet later has `img { height: 100%; }` (''notice the heights are different''), the browser will render all images with `max-width: 100%` and `height: 100%`.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)