Header Background 100% Page Width

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Wed Jun 18, 2014 2:32 pm
Reply with quote
Report this post
Hi,

I would like to have the header background 100% page width. This can be done easily by using the imageBg page suffix. However, the imageBg suffix also makes the menu bar to look different, and I don't like it.

Anyhow, on the link below I've created a module in the header with background image (not using imageBg). Everything looks fine except for the fact that the background is the width of the template - not the width of the page. How can I make it cover the all width?

https://lionweb.com/new/services

Thank you
User avatar
Fresh Boarder

GK User
Wed Jun 18, 2014 11:46 pm
Reply with quote
Report this post
Hello,

Please try to add the following code at the end of any CSS file:

Code: Select all
#gkHeaderMod {
max-width: 100%!important;
}
User avatar
Administrator

GK User
Thu Jun 19, 2014 12:00 am
Reply with quote
Report this post
Hi,

Thank you. The background image is now 100%. However, all the text in the module is now wider than the template width (1100px). How can I constrain the text to not exceed the template width?

Thanks again
User avatar
Fresh Boarder

GK User
Thu Jun 19, 2014 12:07 am
Reply with quote
Report this post
In this case please revert the previous change, please remove background-image from the module and please set your image as a background image for the following selector:

Code: Select all
#gkHeader
User avatar
Administrator

GK User
Thu Jun 19, 2014 12:48 am
Reply with quote
Report this post
Thank you so much. Your support is amazing!!!
User avatar
Fresh Boarder

GK User
Thu Jul 10, 2014 8:01 am
Reply with quote
Report this post
Hey, i saw that this was said:

In this case please revert the previous change, please remove background-image from the module and please set your image as a background image for the following selector:

#gkHeader


But im not really sure what this means, and im having the same issue. Can you advice please?
User avatar
Fresh Boarder

GK User
Thu Jul 10, 2014 3:24 pm
Reply with quote
Report this post
Hello,

You have to remove the module background-image from the module settings and you have to set the background-image property for the #gkHeader selector in the CSS code.
User avatar
Administrator

GK User
Fri Jul 11, 2014 6:30 am
Reply with quote
Report this post
I'm sorry im not really understanding. What i'm trying to do is set it up so that way i can have multiple pages with images that are full width as the header, but i still need them to be repsonsive like on the homepage. Currently i have these two pages:

www.techgenius.guru as my homepage

and

www.techgenius.guru/locations/monterey.html

I would like to be able to have it look like it is currently, but be responsive on my monterey page, and also work correctly on my homepage.

Any ideas?
User avatar
Fresh Boarder

GK User
Sat Jul 12, 2014 6:15 am
Reply with quote
Report this post
User avatar
Fresh Boarder

GK User
Sun Jul 13, 2014 1:43 am
Reply with quote
Report this post
help please?
User avatar
Fresh Boarder

GK User
Mon Jul 14, 2014 8:04 am
Reply with quote
Report this post
@feedbubbler - sorry but I don't understand what do you want to achieve now - for me your page looks correctly.
User avatar
Administrator

GK User
Wed Jul 16, 2014 3:10 pm
Reply with quote
Report this post
The homepage header area has a max-width or 100%. It is set like that to work properly for all of my other location pages, but i DONT want the text in the header on the homepage to have a max-width of 100%. I want it to have the max-width of 1260px like the rest of the template.
User avatar
Fresh Boarder

GK User
Fri Jul 18, 2014 9:11 am
Reply with quote
Report this post
Please add the following code at the end of any CSS file:

Code: Select all
#gkHeaderMod .custom {
max-width: 1260px;
margin: 0 auto;
}
User avatar
Administrator

GK User
Sat Jul 19, 2014 11:10 am
Reply with quote
Report this post
that ends up changing my location pages as well.

Just to make sure im clear:

all "location" pages need to be a max-width of 100%

and the homepage needs a max-width of 1260px (for the text).

Would it be ok to give you access to the files to change them as needed?
User avatar
Fresh Boarder

GK User
Mon Jul 21, 2014 6:36 am
Reply with quote
Report this post
Please change my code to:

Code: Select all
.imageBg #gkHeaderMod .custom {
max-width: 1260px;
margin: 0 auto;
}
User avatar
Administrator

GK User
Mon Jul 21, 2014 7:20 am
Reply with quote
Report this post
You my friend, are genius. :D
User avatar
Fresh Boarder

GK User
Thu Oct 23, 2014 4:49 am
Reply with quote
Report this post
dziudek wrote:Hello,

You have to remove the module background-image from the module settings and you have to set the background-image property for the #gkHeader selector in the CSS code.


Hi, I just saw this post. I don't understand, I went to my modules and didn't see any module named "background-image". Can you please explain me how can I remove that image and set my own Responsible image?

Thank you,
I will appreciate your answer.
User avatar
Senior Boarder

GK User
Fri Oct 24, 2014 11:47 am
Reply with quote
Report this post
You have to remove background-image image from the Custom HTML module settings and the specify this property in the CSS code.
User avatar
Administrator


cron