Jump to content

Help.. How to make the background page resize automatically


Recommended Posts

Dear all

 

kindly help me, i am new with this

maybe the question was often to be asked

 

Iam trying to replace the background page with image, there was no problem if I opened the shop with maximize the window, the background page was perfectly 100%

post-740440-0-15890600-1387440966_thumb.jpg

 

But if i want to make the window smaller, the background is not fully cover the page, there is white color show  on the page

post-740440-0-90775900-1387441223_thumb.jpg

 

I don't know why and how to fix it...

 

this is the code

/***generic Style**/

body{
font:normal 15px/18px Arial, Verdana, sans-serif;
color:#222;
background:#fff url(../img/bakgrondkayu.png);

}
body.content_only {
background: #fff ;
}

 

 

I really apreciate your help, Thank you

Link to comment
Share on other sites

Hi, thank you for your response

 

 

I'm trying to add the code to html like below, and it's work.  the size of background is now showed full when I minimize or maximize the window.  am i  right or there is another that i should do ?

 

 

html{color:#000;background:url(../img/bakgrondkayu.png);margin:0;padding:0;background-size:100% 100%repeat;}

 

 

body{

font:normal 11px/14px Arial, Verdana, sans-serif;
color:#222;
background:#fff url(../img/bakgrondkayu.png);margin:0;padding:0;background-size:100% 100%repeat;}
 
}
 
 
Link to comment
Share on other sites

it will be much easier to check it if you will share url ;) it's possible?

It is has been solved i Guess,   :P 

 

I'm adding this code ,  the size of background is now showed full when I minimize or maximize the window

 

html{color:#000;background:url(../img/bakgrondkayu.png);margin:0;padding:0;background-size:100% 100%repeat;}

 

 

body{

font:normal 11px/14px Arial, Verdana, sans-serif;
color:#222;
background:#fff url(../img/bakgrondkayu.png);margin:0;padding:0;background-size:100% 100%repeat;}
 
}
Link to comment
Share on other sites

×
×
  • Create New...