Jump to content
ardentconcepts

Background image over header under brandnav over body background image

Recommended Posts

ardentconcepts    0
ardentconcepts

I have a green background image in the body and a white colored header.

 

body{background: url(".../bg-copy1.png") repeat-x scroll 0 0 #82B64A;
  color: #EEEEEE;}

 

#header {background: #ffffff;}
 

I am wanting to put another image over the white header and over the original background image in the body. I have been able to get it in the brandnav section but I can't seem to extend it into the content area, while leaving the header in place.... any thoughts?

 

I'm trying to accomplish something like this, just with a white header...

http://www.emotionslive.co.uk/

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, I would imagine from what you've wrote the header is being cut off. I would say try adjusting the padding/margin for the bottom of the header to allow the image to show further down the page. We'd really need to see a live version to advise further. That way we can see exactly whats happening on the page and what adjustments to make to get the effect you want.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
ardentconcepts    0
ardentconcepts

ardentconcepts.com/TRTest/

 

-its got a redirect going on make sure est is lowercase if you click to follow

Share this post


Link to post
Share on other sites
James B    436
James B

Ok looking at the inspirational site compared to your site I would say the best way to create that effect would be to use a hook to insert the image in a new div into the html or header div of the page, then use css to position it on top.

 

If you've not used hooks before check out - http://support.pagelines.me/docs/customization/hooks/

 

The hooker plugin will be the easiest option if you're part of the Plus membership this plugin is free.

 

Another post which shows this affect but on the feature slider can be found here for reference if needed - http://www.pagelines.com/forum/topic/26011-static-image-over-feature-slider/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
ardentconcepts    0
ardentconcepts

Ok, so I ended up getting rid of the header color, and making that color part of my repeating background image and then I added a second layer background. This overall works, but I can't seem to get my second background image to resize responsively, any thoughts?

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

If you set the width and height of the image using a % width rather than a static px figure it should resize responsively for you.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • BentleyD
      By BentleyD+
      Hey there,
       
      I am working on BentleyRolling.com. I used grams on MoonbodySoul.com and all the images are cropped to a square, whether they are square or 4:5 when posted on instagram, they still get cropped to a square. This looks way better than some being squares and some being 4:5. Did something change since I designed MoonBodySoul.com with Platform5? Can you help me crop all images to a square on BentleyRolling.com 
       
      All the best,
       
      Bentley
    • cstudio
      By cstudio
      How do I control the lightbox effect on the plugin "popthumbs"?  On mobile, it opens up much to small then when expanded it opens to large.  I would like to control the the lightbox to like 90% of the viewer window but I can't figure out how/where to control that.
      Site example

       
      Thx
    • Queue-it
      By Queue-it+
      Hi,
      I am using pl-section-journey and hiding most of the images. When running the page via google speed insights, it tells to optimize all the images that are in this plugins default. (e.g. https://queue-it.com/wp-content/plugins/pl-section-journey/images/drawer-5.jpg ) Like this one that is not visible on the website, but is a part of the plugin and comes up in google insights.
      I've deleted all the images in the plugin, but they still seem to come up. Ref. this page: queue-it.com/features
    • globalnative
      By globalnative+
      Hi there!
      I'm trying to create a featured image for my new blog post. It has text in it, and when I add it as a featured image some of the text is cut off on the right.
      Could I get the ideal dimensions for featured images? Or, a way to customise the dimensions so that they are easier to fit in the way I need?
      Thank you kindly
      Nate
       


    • Claude203
      By Claude203
      Hi,
      Is there a way to target all images in a WordPress DMS site at once, in order to make them width=100% on mobile portrait mode? In other words, I am having trouble identifying the element for all image classes.
      http://www.blackfives.org
      Thanks,
      Claude
×