Wiki source code of CSS Styling Samples for Confluence 4.X
Version 2.1 by Normann P. Nielsen on 2026/11/15 15:43
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{toc/}} |
| 2 | |||
| 3 | === Change header === | ||
| 4 | |||
| 5 | {{code}} | ||
| 6 | #header | ||
| 7 | { | ||
| 8 | line-height: 34px; | ||
| 9 | min-height: 34px; | ||
| 10 | padding-top: 0pt; | ||
| 11 | padding-right: 34px; | ||
| 12 | padding-bottom: 0pt; | ||
| 13 | padding-left: 34px; | ||
| 14 | background-image: url('http://www.mos-eisley.dk/image.jpg'); | ||
| 15 | } | ||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | {{/code}} | ||
| 20 | |||
| 21 | === Change the overall font size === | ||
| 22 | |||
| 23 | {{code}} | ||
| 24 | .body, p, td, table, tr, .bodytext, .stepfield | ||
| 25 | { | ||
| 26 | font-size: 8pt; | ||
| 27 | line-height: 1.3; | ||
| 28 | } | ||
| 29 | |||
| 30 | {{/code}} | ||
| 31 | |||
| 32 | === Change background === | ||
| 33 | |||
| 34 | {{code}} | ||
| 35 | #page { | ||
| 36 | background-image:url('http://fc07.deviantart.net/fs30/f/2008/150/4/3/Grey_ps3_OS_X_by_Jamesb23.jpg'); | ||
| 37 | background-repeat: repeat; | ||
| 38 | } | ||
| 39 | |||
| 40 | #main | ||
| 41 | { | ||
| 42 | background-image:url('http://www.mos-eisley.dk/download/attachments/4161541/gray.jpg'); | ||
| 43 | background-repeat:repeat; | ||
| 44 | } | ||
| 45 | |||
| 46 | |||
| 47 | {{/code}} | ||
| 48 | |||
| 49 | === Removal of some div. elements on the recently-updated-dashboard macro === | ||
| 50 | |||
| 51 | {{code}} | ||
| 52 | .recently-updated-concise h4.sub-heading | ||
| 53 | { | ||
| 54 | display:none; | ||
| 55 | } | ||
| 56 | |||
| 57 | .recently-updated-concise .update-item-desc, .recently-updated-concise .update-item-date, .recently-updated-concise .update-item-changes | ||
| 58 | { | ||
| 59 | display:none; | ||
| 60 | } | ||
| 61 | |||
| 62 | .more-link-container, .more-link-base | ||
| 63 | { | ||
| 64 | display:none; | ||
| 65 | } | ||
| 66 | |||
| 67 | {{/code}} |