Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2014-05-31 05:53:32

charlesbecon
New Member
Registered: 2014-05-31
Posts: 1

Re: lightbox script for full screen overlay

try this css code

.button
{
	width: 150px;
	padding: 10px;
	background-color: #FF8C00;
	box-shadow: -8px 8px 10px 3px rgba(0,0,0,0.2);
    font-weight:bold;
	text-decoration:none;
}
#cover{
    position:fixed;
    top:0;
    left:0;
    background:rgba(0,0,0,0.6);
    z-index:5;
    width:100%;
    height:100%;
    display:none;
}
#loginScreen
{
    height:380px;
    width:340px;
    margin:0 auto;
    position:relative;
    z-index:10;
    display:none;
	background: url(login.png) no-repeat;
	border:5px solid #cccccc;
	border-radius:10px;
}
#loginScreen:target, #loginScreen:target + #cover{
    display:block;
    opacity:2;
}
.cancel
{
    display:block;
    position:absolute;
    top:3px;
    right:2px;
    background:rgb(245,245,245);
    color:black;
    height:30px;
    width:35px;
    font-size:30px;
    text-decoration:none;
    text-align:center;
    font-weight:bold;
}

Full Source code….

http://www.corelangs.com/css/box/fulloverlay.html

Charles

Edit: code presentation

Last edited by gaekwad (2014-05-31 09:39:22)

Offline

Board footer

Powered by FluxBB