NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms-system:article:contentparts:images-div:background-image [2011/03/21 12:08] Knut Heermann (flip-flop) |
english:phpwcms-system:article:contentparts:images-div:background-image [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 129: | Line 129: | ||
| <!--IMAGES_ENTRY_START//--> | <!--IMAGES_ENTRY_START//--> | ||
| - | <!-- C S S : body {background: #F9E931 url({IMAGE_REL}) no-repeat left top !important;} --> | + | <!-- CSS : body {background: #F9E931 url({IMAGE_REL}) no-repeat left top !important;} --> |
| <!-- CSS: body {background: #F9E931 url(filearchive/{IMAGE_HASH}.jpg) no-repeat left top !important;} --> | <!-- CSS: body {background: #F9E931 url(filearchive/{IMAGE_HASH}.jpg) no-repeat left top !important;} --> | ||
| Line 157: | Line 157: | ||
| Delete what you do not need. | Delete what you do not need. | ||
| + | \\ | ||
| + | Please have a closer look to this two lines: | ||
| + | <code html> | ||
| + | <!-- CSS : body {background: #F9E931 url({IMAGE_REL}) no-repeat left top !important;} --> | ||
| + | <!-- CSS: body {background: #F9E931 url(filearchive/{IMAGE_HASH}.jpg) no-repeat left top !important;} --> | ||
| + | </code> | ||
| \\ | \\ | ||
| - | ===== ===== | + | |
| - | - **In both examples the first** (disabled) line by %//% or "CSS :" uses an image with the max. x/y from config | + | |
| + | |||
| + | ===== In both examples: ===== | ||
| + | |||
| + | **... the first** (disabled) line by %%"//" or "CSS :"%% uses an image with the max. x/y from config | ||
| <code php> | <code php> | ||
| Line 171: | Line 181: | ||
| - **The second** line uses the original uploaded image from filearchive. But you must disable the .htaccess in this folder and the .ext is fixed in script. | - **The second** line uses the original uploaded image from filearchive. But you must disable the .htaccess in this folder and the .ext is fixed in script. | ||
| - | First "classic" example: \\ | + | \\ |
| - | - If more than one image is specified in the CP, the last one is winning the race. This can be beneficial, so multiple images are in the CP and the desired is simply pushed down. | + | - If more than one image is specified in the CP, the last one is winning the race. This can be beneficial, so multiple images are in the CP and the desired is simply pushed down. \\ |
| + | But in the second example, the script writes the CSS statements for each image into the HEAD area. The last statement wins. | ||
| \\ | \\ | ||