Forum > Layouts, HTML, CSS & Javascript > background image help
Pages: 1
"background image help", 5 days ago, 5:58 AM #1
NiteStick

User avatar
Posts: 310
Registration date: 7th Aug 2018
Location: New York
hey guys I was trying to mess with this and couldn't figure out how to get it to work right. I have a BG image that repeats horizontally but I would like it not to scroll with the page and stay fixed. Does anyone know what I would add here to get it to do that for me? Thanks!

body {
margin: 10px;
background: black url("http://nitestickcomic.thecomicseries.com/files/bgcity2.png") top repeat-x ;
font-size: 62.5%;
font-family: lucida sans unicode, lucida grande, verdana, sans-serif;
color: black;
text-align: center;
min-width:650px;
}
5 days ago, 6:05 AM #2
Kyo
🐊
User avatar
Posts: 18670
Registration date: 6th Jul 2008
Location: the swamp
background-attachment:fixed;
_______________________
hello
5 days ago, 6:34 AM #3
NiteStick

User avatar
Posts: 310
Registration date: 7th Aug 2018
Location: New York
awesome! I was close. thank you man!!!!
Forum > Layouts, HTML, CSS & Javascript > background image help
Pages: 1