background problem

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
general_
Posts: 24
Joined: Wed 6. Jul 2005, 22:16

background problem

Post 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!! :)
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
general_
Posts: 24
Joined: Wed 6. Jul 2005, 22:16

Post 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?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post 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...
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
general_
Posts: 24
Joined: Wed 6. Jul 2005, 22:16

Post by general_ »

Thanks, but I did it like this now:

Code: Select all

background: #cdc6ac url(bg.gif) bottom left fixed repeat-x;
:)
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Sorry, I think I have misinterpret your first question. Don´t see any "stretched" command. :?:
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply