Welcome to WebmasterWorld Guest from 52.87.253.202

Forum Moderators: not2easy

Message Too Old, No Replies

How to set background colour and distance?

     
2:58 pm on Nov 17, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1088
votes: 1


I like to set the same effect like background image but without images.

How to do in the correct way like background image:
.mywhitebackg1 {
background: rgba(0, 0, 0, 0) url("../uploads/myimageforbackg1.png") no-repeat scroll center bottom / 60% 90%;
}

Sample to work without image:
.mywhitebackg1 {
background-color: #BD646A no-repeat scroll center bottom / 60% 90%;
}
5:40 pm on Nov 17, 2016 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4122
votes: 261


The problem with this is that the variables being used apply to attachments, not colors. The scroll variable can apply to an attached image, but not its background color. The same applies to "no-repeat". A background color applies to the block element which contains that background color.
9:11 pm on Nov 24, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1088
votes: 1


thank you for your honest replies. I have changed and modified all to an attached image.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members