Changing background at top of the page

GK User
Tue Jan 15, 2013 10:27 pm
hi all !
i want to replace the background at the top of the page with my own custom background.
J 2.5 latest
my site: test1.virecodesign.ro
See what i mean in the picture:
bw.jpg
User avatar
Platinum Boarder

GK User
Wed Jan 16, 2013 1:16 am
Anyone on this forum?
User avatar
Platinum Boarder

GK User
Wed Jan 16, 2013 11:28 am
Hi,

Please edit the background property on the template.css file for the following selector:

Code: Select all
#gkPageTop
User avatar
Administrator

GK User
Wed Jan 16, 2013 1:39 pm
that didn't help me. I put a image where you indicated , but you can see the result in the image below. I want to add a banner/background only in the zone that i marked. Hope you understand me.
Untitled-2.jpg
User avatar
Platinum Boarder

GK User
Wed Jan 16, 2013 10:43 pm
Yes, I understand you, but you did something wrong. Once again - please open the css/template.css file and around line 163. please find the #gkPageTop selector and then please change/put background property for it.
User avatar
Administrator

GK User
Wed Jan 16, 2013 11:17 pm
I'm not a coder. I put this

#gkPageTop {
background: #e8e7df url('../images/style1/bg.jpg')
}
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 4:54 am
Please help me dziudek!
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 10:33 am
Sorry but when I'm putting this code in the Firebug to this selector it works - please put this code to your page and then I'll check why it is not working.
User avatar
Administrator

GK User
Thu Jan 17, 2013 3:16 pm
You can view live site at http://test1.virecodesign.ro/
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 3:31 pm
The background is changed but is the same image as in the body container so you probably don't see it - please change the #gkPageTop background to other image or colour.
User avatar
Administrator

GK User
Thu Jan 17, 2013 5:48 pm
Thanks for the advice. Now my problem is the black line from the top is covered by the banner. How do i fix that?
bgline.jpg
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 9:47 pm
In the style1.css please remove the background property for the following selector:

Code: Select all
div.bg
User avatar
Administrator

GK User
Thu Jan 17, 2013 10:34 pm
in the style1.css i replaced
Code: Select all
div.bg {
   background: transparent url('../images/stripes.png') repeat-x 0 0;
}


with
Code: Select all
div.bg {
   
}


It didn't work
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 11:13 pm
Are you sure? I still see the previous code fragment here:

http://test1.virecodesign.ro/templates/ ... style1.css
User avatar
Administrator

GK User
Thu Jan 17, 2013 11:26 pm
Look again please!
I've put the code back, i've deleted the previous time because nothing chamged
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 11:30 pm
Please always refresh your browser cache after the CSS changes - for me the top line dissapeared. The only part of line is over the logo and it can be removed by removing in style1.css (around line 31.) the border-top property for the following selector:

Code: Select all
h1#gkLogo, h1.gkLogo.text
User avatar
Administrator

GK User
Thu Jan 17, 2013 11:36 pm
I want to keep the line from above (stripes.png).
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 11:43 pm
Please revert the change with div.bg and remove the border from logo as I've mentioned in the previous post. Then please add to the #gkPageTop selector the following code:
Code: Select all
margin-top: 5px!important;
User avatar
Administrator

GK User
Thu Jan 17, 2013 11:51 pm
still my background is on top of the line (stripes.png)
User avatar
Platinum Boarder

GK User
Fri Jan 18, 2013 12:18 am
Because you have added margin-top to wrong container - div.bg instead of the #gkPageTop, BTW please use 8px in the margin (now I see that 5px is not enough).
User avatar
Administrator

GK User
Fri Jan 18, 2013 12:59 am
Almost looks perfect.
Still the banner do not align to right edges of the search and the logo contains in the top some black line. I appreciate your support !
Can you have the patience to assist me to achieve the final result to perfect?
User avatar
Platinum Boarder

GK User
Fri Jan 18, 2013 7:18 am
I've described how you can remove the border at the logo top in this post:

dziudek wrote:Please always refresh your browser cache after the CSS changes - for me the top line dissapeared. The only part of line is over the logo and it can be removed by removing in style1.css (around line 31.) the border-top property for the following selector:

Code: Select all
h1#gkLogo, h1.gkLogo.text


to fix the background: please add in the #gkPageTop the following property:

Code: Select all
background-position: 9px 0;
User avatar
Administrator

GK User
Fri Jan 18, 2013 2:11 pm
Thnak you !
It looks amazing!
Great job and great support Gavick!
User avatar
Platinum Boarder


cron