opksrj Posted October 28, 2009 Share Posted October 28, 2009 hey there - i'm attempting to center this background photo on a site i'm working on... http://www.knesekguns.com/commercial/ not sure what i'm doing wrong..i added the center, no-repeat, & fixed options in the css... Link to comment https://forums.phpfreaks.com/topic/179374-trying-to-center-a-background/ Share on other sites More sharing options...
smerny Posted October 28, 2009 Share Posted October 28, 2009 add these background-repeat:no-repeat; background-attachment:fixed; background-position:center; Link to comment https://forums.phpfreaks.com/topic/179374-trying-to-center-a-background/#findComment-946490 Share on other sites More sharing options...
opksrj Posted October 28, 2009 Author Share Posted October 28, 2009 no dice - i'm dumbfounded this is how i'd like the background to be: http://tech2.in.com/ Link to comment https://forums.phpfreaks.com/topic/179374-trying-to-center-a-background/#findComment-946492 Share on other sites More sharing options...
smerny Posted October 28, 2009 Share Posted October 28, 2009 man i just checked out your background image.... it's HUGE... should try to keep them down on size, 553.29 KB, 1979 by 1600px is extreme Link to comment https://forums.phpfreaks.com/topic/179374-trying-to-center-a-background/#findComment-946493 Share on other sites More sharing options...
smerny Posted October 28, 2009 Share Posted October 28, 2009 what that website you are wanting to mimic uses is: background:url(../images/bg.gif) repeat-y center; and bg.gif is 1440x1px and 1.44 kb repeat y means that the 1px tall image is repeatedly stacked on top of itself to fill the page Link to comment https://forums.phpfreaks.com/topic/179374-trying-to-center-a-background/#findComment-946496 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.