Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 04:37 pm EDT

Geeklog Forums

Staticpages background picture?


Paul

Anonymous
happy
Question Is it possible to put a background picture within a ststic page? Question Also, do IMG SRC= paths have to be absolute paths E.g. \"/ststicpages/images/image.jpg\" Or is it possible to use relative paths, eg. \"images/image.jpg\" If relative is possible, then where is the working directory? The root? Just seems to be limited info on what can be achieved within the contents of a static page. Any help would be appreciated, scuba
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Paul:Is it possible to put a background picture within a ststic page?
Sure, use CSS.
Quote by Paul:Also, do IMG SRC= paths have to be absolute paths E.g. \"/ststicpages/images/image.jpg\"
For static pages that are not used on the frontpage, relative paths (relative to the staticpages directory) will work - if the url rewriting is off. What\'s so bad about absolute paths, btw? Use them and you don\'t have to guess ...
Quote by Paul:Just seems to be limited info on what can be achieved within the contents of a static page.
Tutorials on HTML and CSS are slightly outside of the scope of the Geeklog documentation, IMO Mr. Green bye, Dirk
 Quote

Paul

Anonymous
Quote by: Dirk
Sure, use CSS
I tried re-defining the body tag and even created a new CSS style called .main as follows without any luck. Any ideas how I shopuld apply a background image to just the staticpage window using CSS?:
Text Formatted Code
<!--
.main {  background-image: url(/staticpages/images/ski1.jpg)}
body {  background-image: url(/staticpages/images/ski1.jpg)}
-->
I know CSS is outside the bounds of normal discussion here but it helps as it is useful figuring out how to use static pages. The code I have on my static page works fine on its own htm page with the background image displayed properly but pasted in the static page, it applied the image behind geeklog and not inside the static page itself. Any help would be useful. Thanks, paul
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
Try putting the background in the table cell instead of the whole page.
 Quote

All times are EDT. The time is now 04:37 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content