How can I move a background image to start it lower on the page?
ChancyRat
Registered Users Posts: 2,141 Major grins
I pulled the code I was given to put a 2nd background image on my entire site Theme, and relocated it to an unlisted test gallery where I added a CSS block to the page and this code which I tweaked for position.
All of it works perfectly except - I would like the image to begin below the top navbar menu.
All the sites I find tell me that I should be able to put a pixel or percentage to force the image to start at a certain place vertically.
The example is in red, but it doesn't work.
If I change the 230 to something else, I see that a different part of the image is moved to the top, instead of moving the entire image down by a forced amount.
How do I control the start position of the background image?
I hope I'm clear, I fear I'm repeating myself but only unclearly.
All of it works perfectly except - I would like the image to begin below the top navbar menu.
All the sites I find tell me that I should be able to put a pixel or percentage to force the image to start at a certain place vertically.
The example is in red, but it doesn't work.
If I change the 230 to something else, I see that a different part of the image is moved to the top, instead of moving the entire image down by a forced amount.
/* Add personal background image */ html.sm-user-ui { background-attachment: scroll; background-image: url(/photos/i-MPDSnjz.png); background-position: 0px [COLOR=Red]230px[/COLOR]; background-repeat: repeat; background-size: 88% }
How do I control the start position of the background image?
I hope I'm clear, I fear I'm repeating myself but only unclearly.
0
Comments
http://www.joinrats.com/Other/Testchart/n-7prCZ
http://www.w3schools.com/cssref/css3_pr_background-clip.asp
It appears for this I would need to know the name of the main body of the site, everything except the header section. Is this code known and usable for this purpose?
Thanks.
Still listeningggggg.
I know one can set transparency in the main theme wrench, but that's by adjusting alpha bars, not adding CSS explicitly.
Maybe all I needed to do was ask for the CSS to set transparency to the background on the header, on this page only?
Oh, except I don't want the navbar text links to fade....
Turns out (I deduce, hopefully accurately) that repeat can't pair with moving the start position down.
As long as I use one image without repeat, I was able to make this work.
http://www.joinrats.com/Other/Testchart/n-7prCZ
After playing with the other option, I would almost rather have the background image fully on the page with the top portion transparent, but it appears different browsers can't position or control the size correctly. I kind of give up and will stick with what I found.
I'm DONE (I think).