Welcome to Geeklog, Anonymous Friday, December 13 2024 @ 01:24 pm EST
Geeklog Forums
Staticpages background picture?
Paul
Anonymous
Is it possible to put a background picture within a ststic page?
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
11
10
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
bye, Dirk
11
9
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?:
Sure, use CSS
Text Formatted Code
<!--.main { background-image: url(/staticpages/images/ski1.jpg)}
body { background-image: url(/staticpages/images/ski1.jpg)}
-->
9
8
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.
11
9
Quote
All times are EST. The time is now 01:24 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