Jump to content

Image in background, white middle column


murdoc_tcc

Recommended Posts

hi Running presta1.6.0.14

 

I have an image for the background which works, this is the code I used off a youtube clip

body, #page, .columns-container{
	background: #000 url('http://blablabla.bla/images/background.jpg')!important;
}

now want middle column white, where do I change it so middle column is white

Edited by murdoc_tcc (see edit history)
Link to comment
Share on other sites

Hi, I changed the code to

.header-container, #page, .columns-container{
	background: #000 url('bla/images/background.jpg')!important;
}

nothing happened

 

Changed it to this then

.header-container, .columns-container{
	background: #000 url('blaimages/background.jpg')!important;
}

nothing happened

.header-container{
	background: #000 url('blaimages/background.jpg')!important;
}

changed it to that and it is totally black

Edited by murdoc_tcc (see edit history)
Link to comment
Share on other sites

Revert back. You could try to add additional CSS code to apply for the class container and there make the background white.

Which means: Leavy body as you had and add one more CSS rule for the container shown below which must have white (or another color) as background color set. This is where the products or detail data starts:

<div id="columns" class="container">
Edited by Scully (see edit history)
  • Like 1
Link to comment
Share on other sites

 

I'd still say the following class container needs background color white.

I'f try to add it into global.css but ONLY for the class container.

<div class="container">

 Hey Scully, I dont know what you mean by this, where do I change the class="Container"

 

 

Link to comment
Share on other sites

Hello, OK

 

that worked, BUT it messed up the header and a couple, have a look,

 

this is the code I used

div.container {
    background: #ffffff;

} 

so now just need to make the center column a bt bigger because popular nav bar is sticking out on the left, and the top nave bar needs to be the red color

Link to comment
Share on other sites

Try to learn some basics for CSS files. If you add rules, there are read from the beginning to the end. The last rule appiles if there are any overlapping rules.

container is already defined at appx. line 549 in this secion where your new rule is applied at appx. line 5483:

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px; }
  .container:before, .container:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */ }
  .container:after {
    clear: both; }

Furthermore - your background adds appx. 1 MB of size to your site which is a lot. You can also use only one small file instead an use the property background-repeat:

 

https://www.w3schools.com/cssref/pr_background-repeat.asp

Edited by Scully (see edit history)
Link to comment
Share on other sites

Hi Scully,

.container {
 background: #ffffff;	
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px; }
  .container:before, .container:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */ }
  .container:after {
    clear: both; }

I have changed it, it works fine, just have the problem with the content that is still close on the border.

 

as for the background Ill need to choose a different picture, that will flow into each other

 

post-1428824-0-47897000-1502801890_thumb.png

Link to comment
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
×
×
  • Create New...