Page 1 of 1

background problem

Posted: Sun 6. Aug 2006, 20:58
by general_
I entered "/picture/bg.gif" for my phpwcms page in the layout options. But it is shown repeated - not just one time stretched.

how can i prevent this?

Here a capture:
http://img453.imageshack.us/img453/9544 ... nt2dt1.jpg

Thank you for your answers!! :)

Posted: Sun 6. Aug 2006, 21:10
by juergen
Hello general.

bettter define your background via frontend.css in the admin section...

Therefore (its worth it) you should read css Information via google for "css background properties" and for "css background repeat".

In the tabledesign leave the entry for bg pic blank.

You -may- define the bg in the body{} css section.

Jürgen

Posted: Sun 6. Aug 2006, 21:15
by flip-flop
http://de.selfhtml.org/css/eigenschafte ... rgrund.htm
But it is shown repeated - not just one time stretched.
Thats normal. :shock:

It would be bad, if it were different. :!:

regards Knut

Posted: Sun 6. Aug 2006, 21:37
by general_
hi,

Code: Select all

background-image:url(bg.gif);
background-repeat:repeat-x;
works, but so its just in one row, and not the whole site. what parameter i have to add, that it would be so?

Posted: Sun 6. Aug 2006, 21:45
by flip-flop
SELFHTML wrote:Mit background-repeat: können Sie das Wiederholungsverhalten einer Hintergrundgrafik, die Sie mit background-image einbinden, kontrollieren. Erlaubt ist eine der folgenden Angaben.

repeat = wiederholen (Voreinstellung).
repeat-x = nur "eine Zeile lang" waagerecht wiederholen.
repeat-y = nur "eine Spalte lang" senkrecht wiederholen.
no-repeat = nicht wiederholen, nur als Einzelbild anzeigen.

Posted: Sun 6. Aug 2006, 21:51
by juergen
...

problem is (here from one of my logs:)
1280x1024 1623
1024x768 1261
1400x1050 435
1600x1200 316
1152x864 137
800x600 112
1280x800 69
1440x900 39
1280x960 34
1280x854 26

which imagesize you whould take ?

Tricky: Take one fix and add the nearest color as value ...

You see such a thing each time you log into backend phpwcms...

Posted: Sun 6. Aug 2006, 22:04
by flip-flop
Ther is no "stretched" command for the background.
I hope you don´t confuse it with the MS-Win-Background?

Or is this example the right for you? http://www.htmlite.com/faq022.php

regards Knut

Posted: Sun 6. Aug 2006, 22:04
by general_
Thanks, but I did it like this now:

Code: Select all

background: #cdc6ac url(bg.gif) bottom left fixed repeat-x;
:)

Posted: Sun 6. Aug 2006, 22:48
by flip-flop
Sorry, I think I have misinterpret your first question. Don´t see any "stretched" command. :?:

Posted: Mon 7. Aug 2006, 09:38
by pico
Hi

if I see it right, you want to have a Graduadet Backgrouend
so make a Image with a height of 1280px and a width of 2 or 3 px
take it for Baclground with repeat-x and set a Backgroundcolor to the Value of the lightest Color of your Image