Solved

background image both header and footer

Posted on 2014-02-04
2
319 Views
Last Modified: 2014-02-09
having body background image successful placed

but while using the footer background image which the attributes might same as the header

body {
    background-image: url('../images/blacknwhitefade2.jpg');
    background-position: right 50px;
    background-repeat: repeat-x;
    background-position: top;
}

#footer {
     background-image: url('../images/blacknwhitefade3.jpg');
    background-position: right 50px;
    background-repeat: repeat-x;
    background-position: bottom;
    height: 300px;
    width: 100%;
}

Open in new window


it seems not showing,
0
Comment
Question by:doramail05
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
ID: 39834892
Since its the same image, it may be showing behind the body and you can not see it.
the best way to test it is by using a different image on the footer, if it shows then you need to modify your body css to allow the image to show properly
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39834926
Your stylesheet is confused

You have two background-positions defined - the second one is going to override the first - so from the code you posted there is nothing we can tell about what the problem is - could be the image is being placed wrong or a bunch of other issues.

If you can post a link to the page that would be the best option.

In the meantime - decide on what you want your background-position to be for body and footer and remove the extra background-position lines.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View > Style menu 3 33
Disable the weekends on datepicker control 6 52
Best explanation of following code css 11 40
Firefox CSS Help. 1 12
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question