Full width header- BS container, width 8

Open to all! Ask other shopowners for help.
Post Reply
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Full width header- BS container, width 8

Post by LeeFoster »

I'm working on a test store for a new project and I looking to have a full size header/logo image but keep the rest of the content to a container with a width of 8.

Installed Version: CE Phoenix v1.0.8.15


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Full width header- BS container, width 8

Post by heatherbell »

LeeFoster wrote: Sun Jun 05, 2022 3:48 pm full size header/logo image but keep the rest of the content to a container with a width of 8.
Not sure if I understand but we have used the following css which keeps the header and footer full screen width but reduces the body content according to the max-width

Code: Select all

.body-sans-header{
    margin-left: auto!important;
    margin-right: auto!important;
    max-width: 1400px;
  }
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Full width header- BS container, width 8

Post by LeeFoster »

heatherbell wrote: Sun Jun 05, 2022 4:20 pm Not sure if I understand but we have used the following css which keeps the header and footer full screen width but reduces the body content according to the max-width

Code: Select all

.body-sans-header{
    margin-left: auto!important;
    margin-right: auto!important;
    max-width: 1400px;
  }
Ok, I see what you're doing here. Set it to full and restrict the body rather than set it to 2/3 and extend the header.

I've done that but I set the max width to 67% instead of a px number.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Full width header- BS container, width 8

Post by heatherbell »

LeeFoster wrote: Sun Jun 05, 2022 7:32 pm I've done that but I set the max width to 67% instead of a px number.
OK if that is what you want on all devices.
BTW, please and thanks helps.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Full width header- BS container, width 8

Post by burt »

If you want something (anything) full width, take it out of the bootstrap container.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply