i want to transparent my background image without take position relative, absolute, fixed etc. You can create gradient color manually like this. 0:05 We're gonna create two transparent linear-gradients that 0:07 overlay our main header's background image. 0:11 So first, let's go back to our style sheet and delete the second background-image 0:13 declaration in our main-header rule, so the one containing the radial-gradient. Make Background Color Transparent Using CSS RGBA. Gradient background color. As found in the design, instead of using a straightforward flood color using RGBA() or HSLA(), the designer utilized a gradient. CSS Gradient is a happy little website and free tool that lets you create a gradient background for websites. CSS Image Captions with Gradients and Transparent Backgrounds. body { background: linear-gradient(green, blue); } See the Pen Background image tint effect with CSS (Gradient) by Renato Carvalho (@renatocarvalho) on CodePen. i want only background- image … try to write both the gradient and the background image into one CSS declaration and divide it by a comma and it should work. text-fill-color: transparent; Step 1: Add the gradient as a background. In that case, the skeleton CSS will be this:.image { background: / ; background-repeat: no-repeat; } We can even use multiple sets of background arguments! Therefore, we can stack and separate them with commas like this: By Amit Agarwal. CSS Background Image Gradient Transparency Live Preview. Again for this method, you have to use a transparent image as the background image. if i containg opacity 0 to 1 then my forground contents being transparent. You can use CSS RGBA color code to give a transparent background color. ... You can add a semi-transparent white on black caption to your images using simple CSS. If you want to make the text background visible to the visitors to display the back image.. See the example below to add a background with transparent color with CSS. The opacity of the caption background can be changed by modifying the alpha parameter in background-color’s rgba attribute. Besides being a css gradient generator, the site is also chock-full of colorful content about gradients from technical articles to real life gradient examples like Stripe and Instagram. Now we have seen the use of background image with solid color let’s see how to do this with a gradient background color. The code would look like this then: . main-header { padding-top : 170 px ; height : 850 px ; background : linear-gradient ( #004092 , #020202 , transparent ), url ( "../img/mountains.jpg" ) no-repeat center ; background-size : cover ; box-shadow : 0 px 10 px 20 px -5 …