Tags:
create new tag
view all tags

SID-00716: Creating a background image for a topic

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Creating a background image for a topic
SupportCategory CategorySkin
TWiki version 4.2.3
Server OS Fedora
Web server apache
Perl version 5.8.8
Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg Dsc08087.jpg r1 manage 124.0 K 2010-01-14 - 02:01 PeterThoeny  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-01-14 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.