-
AuthorPosts
-
May 29, 2013 at 2:49 pm #187835
I want to insert a background-image in jpg format header. I want to go from side to side of the header and has a height of two or three fingers.
What steps should I take for it?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 29, 2013 at 4:10 pm #494319So that I can try to best assist you, please provide the url of the site you’re working on
May 29, 2013 at 4:21 pm #494323TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 29, 2013 at 4:29 pm #494327Within file path –> /templates/ja_purity_ii/css/template.css
at line 1237, you will see the following:
#ja-header .main .main-inner1 {
background: none repeat scroll 0 0 #0098FE
height: 100%;
margin-left: 0;
margin-right: 0;
}You can add a “background-image” property to this CSS rule – with the specified path identifying in which site file you have your background image – for example …
#ja-header .main .main-inner1 {
background: none repeat scroll 0 0 #0098FE
background-image: url("../templates/ja_purity_ii/images/your-image.jpg");
height: 100%;
margin-left: 0;
margin-right: 0;
}Hope that helps.
May 30, 2013 at 8:38 pm #494384First thank you for the reply.
I inserted the following code and this is the result: http://www.jgguerrero.es
#ja-header .main .main-inner1 {
background-repeat: none no-repeat scroll 0 0 ;
background-image: url(../images/JGHeader1.jpg);
height: 100%;
margin-left: 0;
margin-right: 0;
}What I can do to make the top-top-positions and top-header panel and can be adjusted at will?
Thanks again
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 30, 2013 at 8:51 pm #494386<em>@jochite 374848 wrote:</em><blockquote>
What I can do to make the top-top-positions and top-header panel and can be adjusted at will?Thanks again</blockquote>
I don’t fully understand your question … can you try to clarify a bit?
May 30, 2013 at 9:33 pm #494389I do not want the sides of the background-image appear white but covers 100% of the header.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 30, 2013 at 9:40 pm #494390This is kind of a sloppy way to do it, but try this . . . .
Within file path –> /templates/ja_purity_ii/css/template.css
at line 1237, modify as follows:
#ja-header .main .main-inner1 {
background-image: url("../images/JGHeader1.jpg");
height: 100%;
margin-left: -35px;
margin-right: 0;
width: 1400px;
}Does that get you any closer to what you wanted?
1 user says Thank You to TomC for this useful post
May 30, 2013 at 10:22 pm #494392I think with your directions remain fixed. Just have to give the background-image a width of 1400 px.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 30, 2013 at 10:28 pm #494393<em>@jochite 374857 wrote:</em><blockquote>I think with your directions remain fixed. Just have to give the background-image a width of 1400 px.</blockquote>
You may still need to fiddle with the left margin …. but give it a shot and see what happens -
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by TomC 11 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum