Background image and video player
-
Okay. Is this close enough?
It is quite difficult to achieve this with the current layout. I moved the portrait from header widget to within the content and moved the whole content-main div upwards with a negative margin of about 330px.
.home #content-main {
background: url("http://www.tonycleary.com/wp-content/uploads/2014/03/home-background.jpg") no-repeat !important;
margin-top: -331px;
background-size: cover !important;
width: 44.5% !important;
position: absolute;
height: 100%;
}
body {
background: #758F89 !important;
}It is really really a bad approach. I’ll look for better solutions. If it is just for the homepage, we can just redesign the homepage layout with the child theme.
Resized screenshot,
Prasanna, the screenshot is perfect.
I have added the image to the home page content and placed this latest code in Custom CSS, and took out the coding;
body {
background-image: url("http://www.tonycleary.com/wp-content/uploads/2014/03/home-background.jpg") !important;
}from the original code, leaving the coding
* {
background: none !important;
border: none !important;
box-shadow: none !important;
}from the original code (as it appears to be needed), and left it for your inspection.
Three points;
1) Should that part of the original code still be in there?
2) Your latest code changes just the home page by including .home within the code (I assume)
3) I am getting the background colour down the right and at the bottom.
Thanks so much for your time on this.
Chris
Viewing 5 posts - 11 through 15 (of 15 total)
- 1
- 2
- You must be logged in to reply to this topic.