Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" id="husky-style-css" href="https://hc.edu/wp-content/themes/husky/style.css?ver=1721226781" media="all">
    <link rel="stylesheet" id="husky-fonts-css" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&amp;family=Josefin+Sans:wght@500;600&amp;family=Source+Sans+3:wght@400..700&amp;display=swap" media="all">
    <link rel="stylesheet" id="husky-font-awesome-css" href="https://hc.edu/wp-content/themes/husky/assets/css/font-awesome.css?ver=6.4.2.0" media="all">
    <title>Houston Christian University</title>

<body>
    <div class="top"></div>
    <img id="girl1" src="https://hc.edu/wp-content/uploads/2024/05/06a2d3b5-untitled-2_10y30a80xc0a800c00001o.jpg" alt="">
    <div class="container">
        <div class="first-half row">
            <div class="left-div medium-6 columns">
                <div class="text1">
                    <h1 class="h1">bachelor’s degrees and graduate programs</h1>
                </div>
            </div>

            <div class="right-div medium-6 columns">
                <div class="text2">
                    <p class="p1" class="p1" >DISCOVER ALL WE DO <span id="for">FOR YOU</span></p>
                </div>
                <div class="text3">
                    <p class="p1" class="p1" >Fill out the form below to receive info about HCU’s undergraduate and graduate opportunities!</p>
                </div>

                <form>
                    <label for="fname">First Name*</label>
                    <input type="text" id="fname">

                    <label for="lname">Last Name*</label>
                    <input type="text" id="lname">

                    <label for="bday">Birthdate*</label>
                    <div class="date">
                        <input type="month" id="month">
                        <input type="number" id="day" min="1" max="31"> <!--still doesn't restrict  -->
                        <input type="number" id="year" min="1900" max="2024">
                    </div>
                    
                    <label for="email">Email*</label>
                    <input type="email" id="email">

                    <label for="type">What best describes your future student type?</label>
                    <select>
                        <option hidden disabled selected value></option>
                        <option value="0">On campus Freshman</option>
                        <option value="1">On campus Transfer</option>
                        <option value="2">On campus Graduate (Masters + Doctorate)</option>
                        <option value="3">Online Freshman</option> 
                        <option value="4">Online Transfer</option>
                        <option value="5">Online Graduate (Masters + Doctorate)</option>
                    </select>

                    <button onclick="submit()">Submit</button>
                </form>
            </div>
        </div>
        <img id="girl2" src="https://hc.edu/wp-content/uploads/2024/07/HCU_BIOLOGY-7-scaled-e1722280593770.jpg" alt="">

        <div class="second-half">
            <div class="intention">
                <div class="i1">
                    <h1 class="h1">intention in all we do</h1>
                </div>
                <div class="i2">
                    <p class="p1">It’s at the heart of Houston Christian University, and every student feels it, whether they’re earning a bachelor’s or joining one of our graduate
                        programs. An education here is designed to help you achieve your goals and become an influential and confident community member.</p>
                </div>
            </div>
            <div class="map"><img src="https://hc.edu/wp-content/uploads/2024/05/d3f7ccf3-gettyimages-1250108274_10ge0ok0dk0ho00q01i01o.jpg"></div>
            <img id="girl3" src="https://hc.edu/wp-content/uploads/2024/07/HCU_CYBER_SECURITY-16-scaled-e1722281100859.jpg" alt="">
        </div>
    
    </div>
    
    <div class="longbox">
        <div class="under">
        <p class="p1" >OUR UNIVERSITY OFFERS OVER 77<br> BACHELOR PROGRAMS, INCLUDING<br> TOP MAJORS LIKE:</p>
            <ul>
                <li>Nursing</li>
                <li>Business</li>
                <li>Psychology</li>
                <li>Biology</li>
                <li>Kinesiology</li>
            </ul>
        </div>
        <div class="grad">
            <p class="p1" >AND NUMEROUS GRADUATE<br> DEGREES, CERTIFICATES AND<br> LICENSURE TRACKS, SUCH AS:</p>
            <ul>
                <li>Master of Arts in Apologetics (MAA)</li>
                <li>Master of Arts in Psychology (MAP)</li>
                <li>Master of Divinity (MDiv)</li>
                <li>Doctor of Ministry (DMin)</li>
                <li>Principal Certification</li>
                <li>Online options</li>
                <li>And more!</li>
            </ul>
        </div>
    </div>

    <div class="container">   
        <div class="cards row">
            <div class="card medium-4 columns " id="c1">
                <img src="https://hc.edu/wp-content/uploads/2024/05/fef28189-1200x0_10eb09j08j09h03400001o.jpg" alt="">
                <div class="c">
                    <h1 class="h1">1,430</h1>
                    <p class="p1" >Graduate Students</p>
                </div>
            </div>
            <div class="card medium-4 columns" id="c2">
                <img src="https://hc.edu/wp-content/uploads/2024/05/ae5c5f3a-hcu-campus-17_10h20pk0h20iy00000k01o.jpg" alt="">
                <div class="c">
                    <h1 class="h1">Gold Ranking Military Friendly School</h1>
                </div>
            </div>
            <div class="card medium-4 columns" id="c3">
                <img src="https://hc.edu/wp-content/uploads/2024/05/f65327fc-gettyimages-542727462_10e809h08j09h04l00001o.jpg" alt="">
                <div class="c">
                    <h1 class="h1">#10</h1>
                    <p class="p1" >in Best Value Schools according to the U.S. News & World Report</p>
                </div>
            </div>
        </div>
    
        <div class="beyond">
            <h1 class="h1">beyond the classroom</h1>
            <p class="p1">At HCU, we believe that education goes beyond the classroom. With 50+ undergraduate student organizations, Wednesday worship services, Bible study 
                groups and service opportunities, you'll have plenty of ways to get involved and make a difference in your community while figuring out where God is 
                calling you after graduation.<br><br>As a supportive and engaging community, we want you to reach your full potential, and we do that through personalized
                classes for both undergraduate and graduate students. Additionally, over 95% of undergrads receive aid, and numerous graduate scholarships are available,
                so you can earn your degree without accumulating excessive debt.</p>
        </div>
    </div>

        <div class="third-half">
            <img id="boy" src="https://hc.edu/wp-content/uploads/2024/09/HCU_FINE_ART_CLASSROOM-17-1-scaled-e1725648299943.jpg" alt="">
            <div class="testimony">
                <i class="fa fa-quote-left" style="font-size:36px; color:#273A80"></i>
                <p class="p1">What I did not expect to find was such a rich community. At HCU, the professors genuinely care about their students, they reach out, they pray for them.
                    The student receives specific, helpful commentary on papers and projects.”</p>
                <div class="student">
                    <div class="red"></div>
                    <div class="kp">
                        <p class="p1" id="k">KARISE GILLILAND</p>
                        <p class="p1" id="p">2016 MAA Online Program</p>
                    </div>
                </div>
            </div>
        </div>

    <div class="container">    
        <div class="where">
            <div class="faith">
                <h1 class="h1">where will your faith bring you?</h1>
            </div>
            <button>DISCOVER YOUR PATH</button>
        </div>
    </div>

</body>
</html>
              
            
!

CSS

              
                        body{
            background-color: white !important;
        }
        .top{
            background-color: #273A80;
            height: 120px;
        }
        .h1{
            font-size: 72px;
            font-family: "Playfair Display";
            font-weight: 400;
            color: #273A80;
            letter-spacing: -4px;
            line-height: 77px;
        }
        .p1{
            /* not working properly */
            font-family: "EB Garamond"; 
            font-weight: 400;
            color: black;
            font-size: 18px;
            line-height: 26px;
        }
        .container{
            margin-left: 20.5%;
            /* background-color: antiquewhite;  */
            width: 59%;
            margin-top: 0;
            padding: 0;
        }
        .first-half{
            /* display: flex; */
            /* flex-flow: row wrap; */
            /* background-color: red; */
            /* justify-content: space-between; */
            position: relative;
        }
        .left-div{
            display: inline-block;
            background-color:#273A80;
            height: 453px;
            width: 473px;
        }
        .text1{
            /* background-color: #pink;  */
            padding: 45px 60px 60px 45px;
            display:inline-block;
        }
        .text1 h1{
            color: white;
        }
        .text2, .text3{
            /* background-color: burlywood; */
        }
        .right-div{
            display: block;
            width: 360px;
            background-color: white;
            margin-top: 75px;
        }
        .right-div p{
            font-size: 18px;
            font-weight: 600;
            line-height: 0px;
            color: black;
        }
        #for{
            color:rgba(183, 51, 30, 1); ;
        }
        .text3 p{
            line-height: 24px; 
            font-family: 'EB Garamond'; 
            font-weight: 400; 
            font-size: 18px;
        }
        form{
            display: inline-block;
            border: none;
            margin-top: 50px;
        }
        label{
            display: block; 
            color: black !important;
            font-weight: 600;
        }
        input, select{
            width: 95%;
            border-radius: 3px !important; 
            border: 1px solid black !important;
            margin-top: 2px;
            margin-bottom: 25px;
            height: 30px !important;
            background-color: transparent !important;
        }
        select{
            width: 85% !important;
        }
        .date{
            width: 60%;
            display: flex;
            gap: 5px;
        }
        #month{
            width: 50%;
        }
        #day{
            width: 20%;
        }
        #year{
            width: 30%;
        }
        button{
            display: inline-block;
            box-sizing: border-box;
            width: 100%;
            border-radius: 1px; 
            cursor: pointer;
            padding: 20px 30px;
            background-color: #C14027;
            color: #fff;
            font-weight: bold;
            border: 0;
            margin-top: 10px;
            cursor: pointer;
        }
        button:active {
            background-color: #273A80; 
        }
        .second-half{
            /* display: flex; */
            /* flex-flow: row wrap; */
            /* background-color: #yellow; */
            justify-content: space-between;
            padding-left: 64px;
            position: relative;
            margin-top: 300px;
        }
        .intention{
            display: inline-block;
            /* background-color: chartreuse; */
            width: 368px;
        }
        .intention p{
            font-family: "EB Garamond";
            font-size: 18px;
            line-height: 26px;
            color: black;
            margin-top: 30px;
            width: 359px;
        }
        .i1{
            /* background-color: chartreuse; */
            width: 368px;
            height: 154px;
        }
        .i2{
            /* background-color: grey; */
            width: 359px;
            height: 182px;
        }
        .longbox{
            margin: 80px auto; 
            /* padding: 20px;  */
            background-color: #273A80; 
            display: flex; 
            flex-flow: row wrap;
            justify-content: center;
            align-items: center;
            color: white;
            }
        .longbox p{
            font-family: "Josefin Sans" !important;
            font-weight: 600 !important;
            font-style: normal !important;
            font-size: 18px !important;
            color: white;
        }
        .under{
            margin: 0 50px 3rem 0;
            /* background-color: cadetblue; */
        }
        .grad{
            margin: 3rem 0 3rem 50px;
            /* background-color: cadetblue; */
        }
        @media only screen and (max-width: 785px) {
            .longbox {flex-direction: column}
            .under, .grad {width: 60%; margin: 1rem 0 1rem 0}
            .second-half{padding-left: 0;}  
        }
        .cards {
            color: white; 
            /* background-color: green; */
            margin: 0 auto;
            max-width: 951px; 
            /* gap: 10px; */
            display: flex;
        }
        .card{
            box-sizing: border-box;
            padding: 0;
            width:307px;
            height: 341px;
            text-align: center;
            align-content: center;
        }
        .card img{
            height: 341px;
            max-width: 100%;
            opacity: 20%;
            position: relative;
        }
        .c{
            position: absolute;
            top: 50px;
            right: 60px;
            left: 60px;
        }
        .card h1{
            line-height: 1;
        }
        #c2 h1{
            font-size: 48px;
        }
        .card p{
            margin-top: 38px;
        }
        #c1{
            background-color: #A0C7E5;
            margin-right: 10px;
        }
        #c2{
            background-color: #F8F8F8;
        }
        #c3{
            background-color: #D1705D;
            margin-left: 10px;
        }
        #c3 h1, #c3 p{
            color: white; 
        }
        .beyond{
            margin: 70px auto;
            display: inline-block;
            box-sizing: border-box;
            padding: 0 60px 0 60px;
            /* background-color: blueviolet; */
        }
        .beyond p{
            color:black;
            margin-top: 30px;
            width: 814px;
        }
        .testimony{
            margin: 100px;
            display: inline-block;
            box-sizing: border-box;
            background-color: white;
            width: 423px;
            height: 370px;
            padding: 40px;
            position: absolute;
            top: 29px;
            left: 195px;
        }
        .testimony p{
            font-family: "Josefin Sans";
            font-weight: 600;
            font-style: normal;
            color: rgb(0, 0, 0);
            font-size: 18px;
            margin-top: 10px;
        }
        .student{
            margin-top: 40px;
            /* background-color: bisque; */
            width: 300px;
            height: 45px;
            display: flex;  
        }
        .red{
            background-color:rgb(193, 64, 39);
            width: 25px;
            float: left;
            margin-right: 20px;
        }
        .kp{
            float: right;
        }
        .student p{
            font-weight: 600;
            font-size: 18px;
            color: rgb(193, 64, 39);
            line-height: 8px;
            margin-top: 3px;
        }
        #p{
            font-weight: 400;
            font-size: 14px;
        }
        .where{
            width:80%;
            margin-left: 10%;
            margin-top: 70px;
            display: inline-block;
            box-sizing: border-box;
            text-align: center;
            align-content: center;
            font-size: 32px;
            font-family: "Playfair Display";
            font-weight: 400;
            color: #273A80;
            /* background-color: darkslategrey; */
        }
        .where button{
            background: rgba(183, 51, 30, 1);
            color: white;
            width: 272px;
            height: 63px;
            font-size: 16px;
            line-height: 19px;
            font-weight: 600;
            font-family: Josefin Sans;
            margin-top: 60px;
        }
        .where button:active{
            background-color: #273A80;
        }
        .faith{
            display: block;
            box-sizing: border-box;
            /* background-color: aqua; */
        }
        #girl1{
            width: 100%;
        }
        #girl2{
            width: 473px;
            position: absolute;
            top:1026px;
        }
        #girl3{
            width: 307px;
            height: 298px;
            position: absolute;
            right: 90px;
            /* left: -108px; */
            top: 37px;
            z-index: 9;
        }
        .map{
            background-color: rgba(39, 58, 128);
            width: 285px;
            height: 372px;
            float: right;
        }
        .map img{
            opacity: 20%;
        }
        #boy{
            width: 100%;
        }
        .third-half{
            position: relative;
        }
              
            
!

JS

              
                
              
            
!
999px

Console