Page 1 of 1

Background file

Posted: Fri Dec 26, 2014 9:49 pm
by danny
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I want to change the texture of all parts by background file.
I guess I have to put the following:
background-image:url(http://www.xxxxxxxxxx.zzzzz/bg.jpg) ; background-repeat:repeat-x;
A. Is this correct ?
B. Where exactly in the style.css should I write it ?

thanks

Danny

Re: Background file

Posted: Sat Dec 27, 2014 8:59 am
by Henrie
Hello Danny,

When you would like to change the background of the entire page, you should edit the style.css file.
In the style.css file of the default template you can find

Code: Select all

body{margin:0; padding:0; background-image:url(images/bg.png); background-repeat:repeat-x; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
Change

Code: Select all

background-image:url(images/bg.png); background-repeat:repeat-x;
to what you would like. For more information about background image options you read the following page http://www.w3schools.com/css/css_background.asp

When you would like the change the background of the messages only you must find the following line in the style.css file

Code: Select all

.gbook_commentbox{width:96%; height:auto; background-image:url(images/bg_comment_box.gif); background-repeat:repeat-x; background-color:#f9f9f9; margin:0 auto; border:solid 1px #CCCCCC; display: table; margin-bottom:20px;}
and change

Code: Select all

background-image:url(images/bg_comment_box.gif); background-repeat:repeat-x;
to what you would like for your background image. In the default template this background defines the blue line at the top of the message in which the texts 'Submitted by' and 'Comments:' are displayed.

Greetings,
Henrie

Re: Background file

Posted: Sat Dec 27, 2014 10:45 am
by danny
Thank Henrie,
I tried:


/*--------------------------------------------HEADER--------------------------------------------*/

body{margin:0; padding:0; background-image:url(dannygoldmancom.ipage.com/bg-02.jpg); background-repeat:repeat-x; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}

#gbook_header{width:600px; height:150px; margin:0 auto; background-image:url(images/book.png); background-repeat:no-repeat;}

unfortunately it does not work.... :(

Re: Background file

Posted: Sat Dec 27, 2014 11:11 am
by Henrie
Please change

Code: Select all

background-image:url(dannygoldmancom.ipage.com/bg-02.jpg);
to

Code: Select all

background-image:url("http://dannygoldmancom.ipage.com/bg-02.jpg");
and refresh your browser page using CTRL + F5 to refesh it with clearing the browser cache to be sure it is not showing the old cached page.

Greetings,
Henrie

Re: Background file

Posted: Sat Dec 27, 2014 12:40 pm
by danny
Thanks,
It changed only the header texture (The small upper area where is the "number of entries and the yellow
guestbook Icon)
Danny

Re: Background file

Posted: Sat Dec 27, 2014 1:05 pm
by Henrie
Danny,

Please read the page I linked in my first reply http://www.w3schools.com/css/css_background.asp
It gives info about background-repeat, and a link with more in depth information http://www.w3schools.com/cssref/pr_back ... repeat.asp
Set background-repeat option to your desired working

Code: Select all

Value       Description
repeat      The background image will be repeated both vertically and horizontally. This is default
repeat-x    The background image will be repeated only horizontally
repeat-y    The background image will be repeated only vertically
no-repeat   The background-image will not be repeated
initial     Sets this property to its default value. Read about initial
inherit     Inherits this property from its parent element. Read about inherit
I think your desired option would be background-repeat:repeat;

Greetings,
Henrie

Re: Background file

Posted: Tue Jun 16, 2020 9:08 am
by marcinb
Hello,
I would like to insert a background on the website with the portal for users. Where can I do it ??

Re: Background file

Posted: Thu Jul 02, 2020 11:15 pm
by Henrie
I have no idea what user portal you are talking about (there is none in GBook)? So i do not know how to help you.