Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Background colour

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi

www.leadbetters.co.uk/newsite/index.php/home
J 3 Responsive template

Client is driving me mad changing the background colours. He wants the site to work like this:
www.basilfry.co.uk

I've got half way there using this css:

#mainWrap, #navwrap {
background: #27417a;
}

#gradient, #grid1wrap, #grid4wrap, #headerwrap, #footerwrap, #topwrap, .zen-container
{background:#27417a;}

But I can't get the centre of the page to go white.

Also, I need to add some padding to make the menu and footer bars work.

Is this possible? Has anyone any ideas?

Thanks

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
This is one

#grid1wrap .zen-container {
background: #fff;}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Another two

#footerwrap .zen-container {
background: #fff;
}

#grid4wrap .zen-container {
background: #fff;
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With the center of the page do you mean the article content area?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for getting back to me.
Not the actual article content, but the colour behind it needs to be white.
Haven't had time yet to check out your suggestions - I'll have to do it later.
Thanks again
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hmm. That doesn't seem to have done anything...
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
You need to add your own colour value of #27417a
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for getting back to me.
I'm not making myself clear enough :-)
I've attached a screenshot with two areas marked in red.
In the lower area, I need all the blue background to show white as in the header and footer, which work more or less fine.
The upper area outlined in red shows how the shadow on the nav bar is not working because the whole central area needs some extra padding around it.
Is this possible?
Sorry if this is all a pain...
Thanks
Ian
Leadbetters2014-10-14at13.45.46.png
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
#mainWrap .zen-container {background: #fff;} gives you the main content area
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
You have inline styling for the bottom menu

<div style="background-color: #27417a; border: 1px solid #27417a; border-radius:5px; font-size: 100%; color: #ffffff; text-align: center; padding: 5px 0px 5px 0px; box-shadow: #888888 5px 5px 5px; margin-bottom: 10px;"><strong>High Wycombe • Marlow • Maidenhead • Henley • Gerrards Cross • Beaconsfield • Slough • Chesham</strong></div>
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The main menu has custom styling

#navwrap ul.nav {
background-color: #27417a;
border: 0px solid;
border-radius: 5px;
border-color: #004f9d;
font-size: 110%;
text-align: center;
box-shadow: #888888 5px 5px 5px;
}

and also you may need #navwrap .zen-container {background: #fff;} but it will depend on what you do with above

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Cracked it! Thank you paul.
The navbar and bottom bar are fine - I don't think I need to change them.
Last challenge is the padding. I need to have 20px white space on either side of the whole thing now. Any ideas?
Thanks again,
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
However, he'll probably take one look, and change it all back again.
Luckily for him, I've worked with him for years, he's a really nice guy and he pays his bills :-)
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
You need to add padding to the container elements

.zen-container {padding:20px}

#grid1wrap .zen-container {padding: 20px 20px;}

you may trip up on IE with the images space wise - not sure on that

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - this doesn't seem to make any difference…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Ah, sorry - working in bits. I'll have another look…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Paul - the code you gave me didn't seem to work.
But I've managed to get the bottom of the page right using
#mainWrap .zen-container {background: #fff; padding-left:20px; padding-right:20px}
I still can't sort out the header and the menu…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

Both styles work but I think your problem is they are being overridden by code further down the custom.css file

with the menu you want space like the other rows to the left and right?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - that's right, and left and right of the four modules under the menu as well.
I'm sorry I'm n to clever enough to work this out for myself.
Any idea which custom css is overriding the new code? Chances are he'll want to change it all back once it's working so I'll need to know what to put back…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

Add the snippet at the bottom of the css file with it wrapped in a comment

I work with parts of the site in a commented area

Then we can best see what is happening

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers