×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

How can adjusting the parent grid settings and fractional units improve the layout of a contact page on a desktop view?

by EITCA Academy / Monday, 19 August 2024 / Published in Web Development, EITC/WD/WFCE Webflow CMS and eCommerce, Site building, Contact page: responsiveness, Examination review

Adjusting the parent grid settings and utilizing fractional units (fr units) can significantly enhance the layout of a contact page on a desktop view, particularly within the context of Webflow CMS and eCommerce site building. This approach leverages the power of CSS Grid, a two-dimensional layout system that allows developers to create complex and responsive web designs with precision and flexibility.

Parent Grid Settings

The parent grid settings in CSS Grid determine the overall structure and behavior of the grid container. These settings include defining the number of rows and columns, setting the size of these rows and columns, and configuring the gaps between them. By meticulously adjusting these settings, developers can create a more organized and visually appealing layout for a contact page.

1. Defining Columns and Rows: The first step in optimizing the layout is to define an appropriate number of columns and rows. For a contact page, you might have sections such as a contact form, address details, a map, and social media links. Allocating specific columns and rows for each section ensures that the content is neatly organized and easily accessible.

css
   .contact-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       grid-template-rows: auto auto;
       gap: 20px;
   }
   

In this example, the grid is defined with three equal-width columns and two rows. The `gap` property is used to set a 20px space between the grid items.

2. Adjusting Column and Row Sizes: The sizes of columns and rows can be adjusted to better accommodate the content. For instance, the column containing the contact form might need to be wider than the column containing the social media links.

css
   .contact-grid {
       display: grid;
       grid-template-columns: 2fr 1fr 1fr;
       grid-template-rows: auto auto;
       gap: 20px;
   }
   

Here, the first column is set to be twice as wide as the other two columns, allowing more space for the contact form.

3. Responsive Design Considerations: Ensuring that the grid layout is responsive is important for a good user experience. Media queries can be used to adjust the grid settings based on the screen size.

css
   @media (max-width: 768px) {
       .contact-grid {
           grid-template-columns: 1fr;
           grid-template-rows: auto;
       }
   }
   

For screens narrower than 768px, the grid switches to a single-column layout, making the contact page more accessible on smaller devices.

Fractional Units (fr)

Fractional units (fr) are a powerful feature of CSS Grid that allows developers to define grid tracks (columns and rows) as a fraction of the available space within the grid container. This approach provides a more flexible and proportional layout compared to fixed units like pixels or percentages.

1. Proportional Layout: Using fractional units enables a proportional distribution of space among the grid tracks. This is particularly useful for a contact page where different sections may require varying amounts of space.

css
   .contact-grid {
       display: grid;
       grid-template-columns: 2fr 1fr 1fr;
       grid-template-rows: auto auto;
       gap: 20px;
   }
   

In this example, the first column takes up twice the space of the other two columns, ensuring that the contact form has more room compared to the address details and social media links.

2. Dynamic Resizing: Fractional units allow the grid to dynamically resize based on the available space, making the layout more adaptable to different screen sizes and resolutions.

css
   .contact-grid {
       display: grid;
       grid-template-columns: 1fr 2fr;
       grid-template-rows: auto;
       gap: 20px;
   }
   

If the viewport size changes, the columns will resize proportionally, maintaining the overall layout structure without breaking the design.

3. Combining fr with Other Units: Fractional units can be combined with other units like pixels, percentages, or auto to create a more nuanced layout.

css
   .contact-grid {
       display: grid;
       grid-template-columns: 200px 1fr 1fr;
       grid-template-rows: auto;
       gap: 20px;
   }
   

In this case, the first column has a fixed width of 200px, while the remaining space is divided equally between the other two columns. This approach provides a balance between fixed and flexible sizing.

Practical Example

Consider a contact page that includes a contact form, address details, a map, and social media links. The goal is to create a responsive and visually appealing layout using CSS Grid and fractional units.

1. HTML Structure:

html
   <div class="contact-grid">
       <div class="contact-form">Contact Form</div>
       <div class="address-details">Address Details</div>
       <div class="map">Map</div>
       <div class="social-media">Social Media Links</div>
   </div>
   

2. CSS Grid Layout:

css
   .contact-grid {
       display: grid;
       grid-template-columns: 2fr 1fr;
       grid-template-rows: auto auto;
       gap: 20px;
   }

   .contact-form {
       grid-column: 1 / 2;
       grid-row: 1 / 3;
   }

   .address-details {
       grid-column: 2 / 3;
       grid-row: 1 / 2;
   }

   .map {
       grid-column: 2 / 3;
       grid-row: 2 / 3;
   }

   .social-media {
       grid-column: 1 / 3;
       grid-row: 3 / 4;
   }

   @media (max-width: 768px) {
       .contact-grid {
           grid-template-columns: 1fr;
           grid-template-rows: auto;
       }

       .contact-form {
           grid-column: 1 / 2;
           grid-row: 1 / 2;
       }

       .address-details {
           grid-column: 1 / 2;
           grid-row: 2 / 3;
       }

       .map {
           grid-column: 1 / 2;
           grid-row: 3 / 4;
       }

       .social-media {
           grid-column: 1 / 2;
           grid-row: 4 / 5;
       }
   }
   

In this example, the contact form spans two rows, providing ample space for user input. The address details and map are placed in the second column, while the social media links span the full width of the grid. The media query ensures that the layout adjusts to a single-column format on smaller screens, maintaining readability and usability.

Adjusting the parent grid settings and utilizing fractional units (fr) in CSS Grid can vastly improve the layout of a contact page on a desktop view. By defining appropriate columns and rows, setting proportional sizes, and ensuring responsiveness, developers can create a contact page that is both functional and aesthetically pleasing. This approach not only enhances the user experience but also ensures that the layout adapts seamlessly to different screen sizes and resolutions.

Other recent questions and answers regarding Contact page: responsiveness:

  • How can maintaining font size consistency across different sections improve the visual appeal and readability of a contact page on narrow devices?
  • Why is it important to reduce padding and possibly remove columns in the mobile landscape view of a contact page?
  • In what ways can creating a combo class for specific elements help maintain design consistency when adjusting the layout for tablet view?
  • What are the key steps to ensure a contact page is responsive across different devices using Webflow CMS and eCommerce tools?

More questions and answers:

  • Field: Web Development
  • Programme: EITC/WD/WFCE Webflow CMS and eCommerce (go to the certification programme)
  • Lesson: Site building (go to related lesson)
  • Topic: Contact page: responsiveness (go to related topic)
  • Examination review
Tagged under: CSS, Fractional Units, Grid, Responsive Design, Web Development, Webflow
Home » Contact page: responsiveness / EITC/WD/WFCE Webflow CMS and eCommerce / Examination review / Site building / Web Development » How can adjusting the parent grid settings and fractional units improve the layout of a contact page on a desktop view?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Web Development
    • Artificial Intelligence
    • Quantum Information
    • Cybersecurity
    • Cloud Computing
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.