Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,895 questions

51,826 answers

573 users

How to create grid with 1 row and 3 cols in CSS

1 Answer

0 votes
<!DOCTYPE html> 
<html> 
    <head> 
        <style>
            .grid-container {
                display: grid;
                grid-template-columns: auto auto auto;
            }
            .grid-item {
                border: 1px solid;
                padding: 10px;
                text-align: center;
            }
        </style>
    </head> 
    <body> 
       <div class="grid-container">
            <div class="grid-item">A</div>
            <div class="grid-item">B</div>
            <div class="grid-item">C</div>  
        </div>
    </body> 
</html> 

 



answered May 20, 2019 by avibootz

Related questions

3 answers 322 views
1 answer 284 views
284 views asked Jun 3, 2019 by avibootz
1 answer 214 views
214 views asked May 20, 2019 by avibootz
1 answer 240 views
2 answers 287 views
1 answer 300 views
...