Modal Success

Modal Success

by pj_js15

HTML

<a href="#openModal">Open Modal</a>

<div id="openModal" class="modalDialog">
    <!--
    <div>
        <a href="#close" title="Close" class="close">X</a>
        <h2>Modal Box</h2>
        <p>This is a sample modal box that can be created using the powers of CSS3.</p>
        <p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
    </div>
    -->

    <div class='mainContainer'>
        <a href="" title="Close" class="close">X</a>
        <div class='header'>
            <div class='logo'>HESTA</div>
            <div class='pageTitle'>ONLINE CLAIM</div>
        </div>

        <h4>Your cover is confirmed</h4>
        <div class='button'>Continue with online claim</div>

        <div class='footer'>
            <h6>Other ways to make your claim notification</h6>
            <div class='contactUs'>
                <div class='callUs'>
                    <div class='number'>CALL 1800 813 327</div>
                    <div class='days'>Monday to Friday, 9am-8pm AET</div>
                </div>
                <div class='callYou'>
                    <div class='number'>HAVE US CALL YOU</div>
                    <div class='days'>Monday to Friday, 9am-8pm AET</div>
                </div>
            </div>
        </div>
    </div>

</div>

CSS

* {
    font-family: Arial;
}

.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog > div {
    width: 400px;
    background: #fff;
}


/*
.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -moz-box-shadow: 1px 1px 3px #000;
    -webkit-box-shadow: 1px 1px 3px #000;
    box-shadow: 1px 1px 3px #000;
}
.close:hover {
    background: #00d9ff;
}
*/

.mainContainer {
    background-color: #fff;
    width: 600px;
    height: 300px;
    text-align: center;
    position:absolute; /*it can be fixed too*/
    left:0; right:0;
    top:0; bottom:0;
    margin:auto;
}

.header {
    background-color: #23345A;
    color: #FFF;
    padding: 20px 10px;
    position: relative;
}

.logo {
    text-align: left;
}

.pageTitle {
    position: absolute;
    right: 10px;
    top: 18px;
}

.footer {
    background-color: #8A86C0;
    color: #FFF;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.button {
    background-color: #512e8b;
    color: #FFF;
    padding: 10px;
    width: 200px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
}

h4 {
    color: #569FB2;
}
.contactUs{
    font-size: 12px;        
    margin-bottom: 70px;
}
.callUs{
    float: left;
    width: 50%;
}
.callYou{
    float: left;
    width: 50%;
}
.days{
    font-size: 10px;
}