Archived

This topic is now archived and is closed to further replies.

  • 0

Footer background


Question

Posted · Report post

Hi Guys,

 

Want to be able to change the footer background from white to a light shade of grey on this website im working on test.propertywealthadvisors.com.au

 

Can you please point me in the right direction?

 

Thanks,

 

Adrian

Share this post


Link to post
Share on other sites

20 answers to this question

Posted · Report post

Yes you can adjust the margin to affect how far in each side goes. You'll probably need to adjust the right side to a lesser figure than the left to get it to display as you intended.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Adrian

 

You can try add in

PageLines > Site Options > Custom Code > CSS Rules

or in

Pagelines Customize (plugin)

#footer {background: grey;}

You can go

http://www.w3schools.com/cssref/css_colornames.asp

or

http://html-color-codes.info/

and select the color as you like

 

You may also use color codes there, such as #C00000 , if you wish to use more specific colors.

 

It is advisable to learn how to do this on your own too.  

Check out 

http://support.pagel...ion/custom-css/

 

If you need more CSS help, make sure you've downloaded Firebug for Firefox

and check out W3 Schools for more info. 

http://www.w3schools.com/

 

Also please be sure to watch our Firebug video tutorial here.

http://www.pagelines.com/wiki/Custom_CSS

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Thanks for that although it did not work :(

Share this post


Link to post
Share on other sites

Posted · Report post

Hi adrian

Please try with

 

#footer {background: grey !important;}

or

#footer {background-color: grey !important;}

Share this post


Link to post
Share on other sites

Posted · Report post

Tried that but still doesn't work

 

test.propertywealthadvisors.com.au

 

this is my css customized section:

 

 

body{
  
  #highlight .highlight-subhead {
font-size: 1.2em;
        color: #008080;
    font-weight: bold;
letter-spacing:0;
text-transform: none;       
    
#footer {background-color: grey !important;}
  }}

Share this post


Link to post
Share on other sites

Posted · Report post

Hi again
Please see the difference 
 body{}

 

#highlight .highlight-subhead {
font-size: 1.2em;
        color: #008080;
    font-weight: bold;
letter-spacing:0;
text-transform: none;  }
    
#footer {background-color: grey !important;}

Share this post


Link to post
Share on other sites

Posted · Report post

Perfect! thank you. Am I able to situate the nav buttons closer to my logo and aligning itself to the bottom of the logo itself?

Share this post


Link to post
Share on other sites

Posted · Report post

Firstly, if your original question has been answered then please mark the topic as resolved and if you have any other questions, create a new topic.

 

To answer your question above, if you wish for your navigation to be position below your logo, you will need to replace the BrandNav section with both the Branding section and  NavBar/Nav Classic section.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

On my footer background I have shortened the widths to match the features width size although I have noticed when I switch to other monitors or take a look on the iphone, the footer background is messed up. Not sure if the below CSS is correct:

 

 

#footer {background-color: #EAEAEA !important;
  position: relative;
margin-left: 100px;
  margin-right: 100px;}

Share this post


Link to post
Share on other sites

Posted · Report post

The footer is designed to be responsive, but when you apply margins with fixed pixel widths, responsiveness is no longer applicable.  That's why it won't work in mobile devices which rely strictly on responsive measurements like em or %.

 

I'd highly recommend you invest some time at http://www.w3schools.com/css/ learning the ins and outs of CSS and responsive design. They have some great resources there that will be most helpful to you.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok thanks. So which property should I be looking at when reducing the width for it to display the same on all devices?

Share this post


Link to post
Share on other sites

Posted · Report post

That depends on what you want to accomplish.  Just use em or percent (%) instead of pixels (px).

 

This will help you to find the right measurements.  http://pxtoem.com/

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks I understand that, although what naming convention do I use? Will it be margin? left/right? So many naming conventions

Share this post


Link to post
Share on other sites

Posted · Report post

You're changing the values, not the names of these two bits:

margin-left: 100px;
  margin-right: 100px;
 
There's no naming conventions needed.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks, I used the % and works fine but i tried viewing on the iphone and it has messed the footer, I think it has to do something with the 'position'?

Share this post


Link to post
Share on other sites

Posted · Report post

I've checked your site on my iphone and the footer looks fine, its displaying the same as the desktop view.

 

However, you can also tweak css in the different views using the browser css plugin - http://www.pagelines.com/store/plugins/browser-css/

 

There's a guide to the various css prefixes the plugin uses here - http://support.pagelines.me/docs/plugins/browser-specific-css/

Share this post


Link to post
Share on other sites

Posted · Report post

on my iphone everything loads although the background color of the footer is off balance and the right side is out of line

Share this post


Link to post
Share on other sites

Posted · Report post

Ah i see, sorry was looking at the other url in your profile, not the test one. I've spoken to you in live chat about the icon sizes, but since checked the background in the iphone.

 

Ok if you have the site set to fixed width background and not on one of the responsive layouts then you could have the same issue as the client below. This has been placed on the bug report and is currently being investigated.

 

http://www.pagelines.com/forum/topic/26262-background-issues-viewing-on-mobile-devices/

 

In saying that looking in your css code you've added a 5% to the footer container which will bring in the margins and the background. If you wanted to give the effect of the color only being applied behind the content area of the page you could have used the .content-pad class inside the footer to apply the color to.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok thanks that works well on the iphone...I just want to slightly change the footer background size to be in line with the features banner?

 

should I use these properties below:

 

 

 margin-left: 5%;
    margin-right: 5%;

 

Thanks for your assistance been a good help!

Share this post


Link to post
Share on other sites

Posted · Report post

thanks that worked!

Share this post


Link to post
Share on other sites