SID-00716: Creating a background image for a topic
| Status: |
Answered |
TWiki version: |
4.2.3 |
Perl version: |
5.8.8 |
| Category: |
CategorySkin |
Server OS: |
Fedora |
Last update: |
16 years ago |
I want to add a background image to a single topic (that's used as a title page by the GENPDF add-on). I want this as background to the topic text - not a replacement for one of the logos.
I'm using pattern skin.
I've seen previous similar questions, but not being a graphics/skin person, the responses weren't comprehensible.
Suppose my image is foo.jpg, my topic is
BarTopic and I want foo.jpg to appear centered under the topic body. How, exactly do I make this happen?
FWIW, I saw a 2002 suggestion that a topic preference variable for this would be a good idea (e.g. Set TOPIC_BACKGROUND = foo.jpg). I support this idea...I shouldn't have to be a GUI internals expert to get this common effect...
Thanks.
--
TimotheLitt - 2010-01-13
Discussion and Answer
use CSS. Enclose the whole topic into a div, in the style of the div specify the background image. Do a raw view on this topic to see how it works.
CSS has many options on background (repeat etc). Check CSS docs.
--
PeterThoeny - 2010-01-14
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.