Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9189063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:09:40+00:00 2026-06-17T20:09:40+00:00

as a medium of learning I try to replicate some things I see in

  • 0

as a medium of learning I try to replicate some things I see in the Internet. A friend of mine that knows what am I doing, saw a template and asked me to replicate part of it for his web page, I already have most of what I needed from the template, but the thing he liked the most I tried and failed and I am not understanding what is the magic involved in this template…

What I need is to replicate the main sheet transparency and the light effect behind it, the transparency I made was with a black 1×1 png made on the GIMP(I can’t buy the Photoshop) I also have a nice pattern like in the template since it is one of the things my friend asked…

transparent box with light effect made with the GIMP

this is the effect I want, I tried messing around with shadows, but didn’t get what i wanted I ended up deleting the code, now all I have is this:

HTML:

 <body>
 <div id="box"></div>
 <div id="light"></div>

CSS:

#light{
border:solid 0px white;
height:550px;
width:800px;
left:50%;
margin-top:130px;
margin-left:-400px;
z-index:-1000;
position:absolute;
box-shadow: 0px 0px 300px #929292;
border-radius:100px;
background-color:#929292;
opacity:0.4;
}
#box{
background-image:url(../images/shtr.png);
margin:0px auto 0px;
width:1060px;
height:auto;
border:solid 0px white;
}

i don’t know if i need to use jquery or javascript, or if that would help in the page performance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:09:41+00:00Added an answer on June 17, 2026 at 8:09 pm

    I managed to get it done, i created a new div that casts a shadow, placed it outside of the screen(left:100%;) and the shadow is casted to the center with the color #CECECE the HTML code:

    <div id="light"></div>
    <div id="box">
        ( ... content ... )
    </div>
    

    in the CSS :

    #light{
    position: absolute;
    background: rgba(0, 0, 0, 0);
    height: 800px;
    width: 840px;
    z-index:-1000;
    opacity:0.15;
    }  
    
    #box{
    background-image:url(../images/shtr.png);/*black 50-60% transparent 1x1 image*/
    margin:0px auto 0px;
    width:1060px;
    height:auto;
    border:solid 0px white;
    }
    

    and to cast the shadow I used a jQuery script, via only css it wasn’t working i don’t know exactly why… the code:

    $(document).ready(function() {
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    
        var A = -myWidth - 49.5*myWidth/60
        $("#brilho_grande").css("box-shadow", A+"px 0px 10000px 100px #CECECE");
        $("#brilho_grande").css("left", 2*myWidth+"px");
        $("#brilho_grande").css("top", "339px");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning F# and I would like to find some medium size opensource project
I have several medium-sized data sets in-memory that I need to be able to
I have a medium sized WinForm App ( 1 Form that hosts 40 user
I have a few medium-sized Rails apps that I work on routinely, and only
I try to run a medium sized programm with a lot of external jars
A medium sized rails app that our company has been working on is getting
I've got a medium scale project (a turn-based game) that's currently written in C/C++.
Medium Security in IE8 states that third-party cookies that save information that can be
currently I have a medium sized MVC project with multiple controllers that support paging
I have a medium-large UI that uses a BorderLayout; the center is a tabbed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.