Changes between Version 4 and Version 5 of CssPrototyping
- Timestamp:
- 2007-03-14T18:10:07Z (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CssPrototyping
v4 v5 30 30 [[Image(logo-small.png)]] 31 31 32 Note that the actual code that would need to finally go into `trac.css` is only the one line following the `WJH` comment. Translated into English, it says: ''For any `<img>` tag that is inside an `<a>` tag with`id="logo"`, make the image width be 400 pixels, overriding all other declarations that may apply''. Also, note that the `!important` is not needed for the version on the website.32 Note that the actual code that would need to finally go into `trac.css` is only the one line following the `WJH` comment. Translated into English, it says: ''For any `<img>` tag that is inside an `<a>` tag that has `id="logo"`, make the image width be 400 pixels, overriding all other declarations that may apply''. Also, note that the `!important` is not needed for the version on the website. 33 33 34 34 === Limitations of this approach === 35 35 36 Obviously, one wanted to modify the ''content'' of the image (e.g., the color) then this approach would not help. On the other hand, ofthe original examples given by Ryan:36 Obviously, if one wanted to modify the ''content'' of the image (e.g., the color) then this approach would not help. On the other hand, for the original examples given by Ryan: 37 37 38 38 > What if the next one is too small, or too wide, or too red. Let's say … … 41 41 > one for a discussion board. And then another one for hotfixes. 42 42 43 nearly allcould be implemented using CSS I think.43 then nearly all the tweaking could be implemented using CSS I think. 44 44