나의 발자취

[CSS] grid 기본 사용법 본문

Frontend/HTML,CSS, , UI,UX

[CSS] grid 기본 사용법

달모드 2020. 11. 4. 13:29

www.caniuse.com  

 

Can I use... Support tables for HTML5, CSS3, etc

 

www.caniuse.com

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <style>
        #grid{
            border:5px solid pink;
            display:grid;
            grid-template-columns: 1fr 2fr;
        }
        div{
            border:5px solid greenyellow;
            font-size: 50px; font-weight: bold;
        }
    </style>
</head>
<body> 
    
    <span>NAVIGATION</span> <span>ARTICLE</span>
    <div id="grid">
        <div>NAVIGATION</div> 
        <div>ARTICLE</div>
    </div>krɪpt/),[6] often abbreviated as JS, is a programming language that conforms to the ECMAScript specification.[7] JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.

    Alongside HTML and CSS, JavaScript is one of the core technologies of the World Wide Web.[8] JavaScript enables interactive web pages and is an essential part of web applications. The vast majority of websites use it for client-side page behavior,[9] and all major web browsers have a dedicated JavaScript engine to execute it.
    
    As a multi-paradigm language, JavaScript supports event-driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM). However, the language itself does not include any input/output (I/O), such as networking, storage, or graphics facilities, as the host environment (usually a web browser) provides those APIs.
    
    JavaScript engines were originally used only i


  </body>
  </html>

Comments