Forum Moderators: not2easy

Message Too Old, No Replies

How to set background colour and distance?

         

toplisek

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

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



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%;
}

not2easy

5:40 pm on Nov 17, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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.

toplisek

9:11 pm on Nov 24, 2016 (gmt 0)

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



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