Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Have you tried the background-size property?
I don’t find where is css with “body.custom-background {”
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Use a Browser Inspector Tool to easily find which elements have which styling.
Yes. I’m using it. But in style.css dont find it:
body.custom-background {
background-color: #F2836B;
background-image: url('http://www.website.com/wptest/wp-content/uploads/2012/11/background.jpg');
background-repeat: no-repeat;
background-position: top center;
background-attachment: fixed;
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The browser inspector tool should be enough to see the CSS styles applying to the element. You should then override or add-to these styles in your Child Theme style.css (create new code). You shouldn’t modify current code in your parent theme’s files.
Yes I know it. But anyway background don’t auto fit with browser size.. I need to see background nice with aspect ratio in any resolution. Default img aspect ratio 16:9, in 4:3 resolution img can be centered, but hidden left and right sides..
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Perhaps this tutorial will help.
I don’t know how it is possible, but I cant find from where it’s generated:
http://img831.imageshack.us/img831/3225/cssi.jpg
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
It’s probably generated by a plugin, but why are you concerned with this?
Because I don’t know where to put code from your link to tutorial.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You should add it to your Child Theme style.css file (stylesheet).
Everything was fine but, need to insert
<div style="max-width:500px;">
<img src="..." />
</div>
Where put this code ?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I think that code is the equivalent of the code you added in style.css. You need not add it.
I don’t know but it doesnt work for me.. :/ Too noob to make it.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What code have you added into style.css, from the tutorial?