hello . How to creat overlay Like this?

hug3tz

New member
May 25, 2020
6
2
3
Just overly button and text? Elementor can do this easy. Just play abit with css and done if needed.
 

hug3tz

New member
May 25, 2020
6
2
3
No brother generally . can this make with CSS? possible

Well surely this can be done easily if using elementor. Are u using it? And are u referring to the button styles or just the diagonal background line?
 

Saint Gabriel

Well-known member
Jan 3, 2020
2,998
3,049
113
Okay, the black grid overlay.

I think it can be done if you can find the grid transparent PNG image.

Then you set it as the section background image then apply the black colour to it as an overlay.

But also make sure the background overlay opacity is not too dark. Because the grid image would be whitish.
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,616
26,958
120
Okay, the black grid overlay.

I think it can be done if you can find the grid transparent PNG image.

Then you set it as the section background image then apply the black colour to it.

This seems to be the relevant code...

CSS:
.LearnAbout .grid {
    z-index: 2;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAEklEQVR42mNg+M8AAhASDUClAEXeA/1LlYqzAAAAAElFTkSuQmCC);
    opacity: .75;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    filter: alpha(opacity=75);
}
 

videva

Member
Aug 25, 2020
75
53
18
diagonal lines . (grid)

like this ??
1.png
if like the picture above,
see code below
CSS:
/* you can adjust thin-dotted or bold-dotted in var() */
.background {
    --thin-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQYV2NkQAOMUH4DAwMDCDPABODqMAQAKe4BBZTlhh0AAAAASUVORK5CYII=");
    --bold-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAEklEQVR42mNg+M8AAhASDUClAEXeA/1LlYqzAAAAAElFTkSuQmCC");
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    background: var(--bold-dotted), url(https://i0.wp.com/keralaspeechfoundation.com/wp-content/uploads/2019/09/file-20181001-19012-1222oat-1.jpg) 50% no-repeat;
    background-size: auto, cover;
    display: flex;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    z-index: 2;
}
/* html structure
    <section class="container">
            <div class="background"></div>
    </section>
*/
 

Mann Ross

Member
Aug 4, 2020
65
16
8
Mars
like this ??
1.png
if like the picture above,
see code below
CSS:
/* you can adjust thin-dotted or bold-dotted in var() */
.background {
    --thin-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQYV2NkQAOMUH4DAwMDCDPABODqMAQAKe4BBZTlhh0AAAAASUVORK5CYII=");
    --bold-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAEklEQVR42mNg+M8AAhASDUClAEXeA/1LlYqzAAAAAElFTkSuQmCC");
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    background: var(--bold-dotted), url(https://i0.wp.com/keralaspeechfoundation.com/wp-content/uploads/2019/09/file-20181001-19012-1222oat-1.jpg) 50% no-repeat;
    background-size: auto, cover;
    display: flex;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    z-index: 2;
}
/* html structure
    <section class="container">
            <div class="background"></div>
    </section>
*/
Yeap . exactly . thanks buddy . you save my day
 

Saint Gabriel

Well-known member
Jan 3, 2020
2,998
3,049
113
This seems to be the relevant code...

CSS:
.LearnAbout .grid {
    z-index: 2;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAEklEQVR42mNg+M8AAhASDUClAEXeA/1LlYqzAAAAAElFTkSuQmCC);
    opacity: .75;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    filter: alpha(opacity=75);
}
like this ??
1.png
if like the picture above,
see code below
CSS:
/* you can adjust thin-dotted or bold-dotted in var() */
.background {
    --thin-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQYV2NkQAOMUH4DAwMDCDPABODqMAQAKe4BBZTlhh0AAAAASUVORK5CYII=");
    --bold-dotted: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAEklEQVR42mNg+M8AAhASDUClAEXeA/1LlYqzAAAAAElFTkSuQmCC");
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    background: var(--bold-dotted), url(https://i0.wp.com/keralaspeechfoundation.com/wp-content/uploads/2019/09/file-20181001-19012-1222oat-1.jpg) 50% no-repeat;
    background-size: auto, cover;
    display: flex;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    z-index: 2;
}
/* html structure
    <section class="container">
            <div class="background"></div>
    </section>
*/
And to get the exact background pattern you want in a Base64 code, use Patternify.
Nice work guys.

Learnt something new from y'all!
 
  • Like
Reactions: MrSam_1

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu