dreamwest Posted March 3, 2011 Share Posted March 3, 2011 Is it possible to have both background-color and background image. <div align='center' style='border:1px solid #eee;width:850px;height:500px;background-color:#000000;background: url(/17298356341299066112.jpg) no-repeat left top;'>Some white text here</div> Quote Link to comment https://forums.phpfreaks.com/topic/229439-background-color-and-background-image/ Share on other sites More sharing options...
dreamwest Posted March 3, 2011 Author Share Posted March 3, 2011 Got it background:#000000 url(/17298356341299066112.jpg) no-repeat left top; Quote Link to comment https://forums.phpfreaks.com/topic/229439-background-color-and-background-image/#findComment-1182138 Share on other sites More sharing options...
cssfreakie Posted March 3, 2011 Share Posted March 3, 2011 notice though if you are referencing from an external stylesheet that the path t the image is different, would probbaly look like: background:#000000 url(../17298356341299066112.jpg) no-repeat left top; Quote Link to comment https://forums.phpfreaks.com/topic/229439-background-color-and-background-image/#findComment-1182200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.