SlideShare a Scribd company logo
1 of 7
Download to read offline
Welcome To
Flex Web Development
Use flexbox to create a responsive website layout
(step-by-step guide)
Flexbox is a relatively new front-end feature that greatly simplifies the process of
creating a responsive website layout. In the past, in order to create a layout that
looked good on a website, you had to use tables or float grids. Furthermore, those
approaches aren't the most effective for responsive design, which ensures that the
website looks good on desktop, tablet, and mobile platforms. Learn how to use
flexbox if you want to stay up to date Flex Web Development with web
development trends. Due to the fact that float grids are rapidly becoming obsolete.
This is a step-by-step tutorial that will walk you through creating a basic
responsive website layout.
Here's a brief overview of the steps you should take in this tutorial:
How to create a basic website layout
 Draw the layout as it will appear on a desktop, tablet, and mobile device.
 Utilizing semantic HTML and CSS, begin coding the fundamental layout.
 Construct the remaining layout section by section.
 Use a mobile-first approach when writing CSS, starting with the smallest
widths and working your way up to larger ones.
As I go, I'll share my thought processes and best practices that I've discovered.
Feel good? Now let's get going!
Wire framing the design of the webpage
Diagrams of every component of your website's organization are called
wireframes. They can be very basic and only cover the essentials, or they can be
extremely detailed and resemble designs. We’re going to use a very basic
wireframe for our purposes here. The website will be divided into its main
sections, and we will determine how each will appear on desktop, tablet, and
mobile devices. The Header, Hero, Content section, Sidebar, and Footer are the
sections that we will be creating. As you can see, every section—including the
sidebar—basically stacks atop one another in a single, long column. The simplest
method for effectively fitting content onto a small device, such as a mobile phone,
is stacking. Attempting to place the sidebar next to the main content would be
pointless because phones aren't wide enough to accommodate both. Now,
expanding in width, this is how the tablet is laid out: The primary distinction is that
the sidebar can now fit next to the main content section because tablets are wider
than phones. Additionally, every section fills the tablet's entire width.And this is
the desktop arrangement for the largest device: You need to start thinking about
how your desktop website will appear on extremely wide monitors. would be more
difficult to read and scan the website content if it were displayed full-width on a
large monitor. Imagine if you had to force your eyes to move from the left to the
right. It would turn away users and is far too much work. Now that we have a clear
idea of how we want the website to look, it's time to get fun and start creating
everything in HTML and CSS!
Constructing the fundamental forms and structures
We will create an HTML element for every wireframe section by working from
our created wireframes. As you can see, every wireframe element now has an
equivalent element in the HTML. Additionally, I added only basic placeholder
text—no actual content.
Add the first few CSS properties
Now that we have some very basic CSS added, we can start to make this layout
look nice! Certain very general styles, such as font styles and border-box settings
for box-sizing, are not displayed. But these are the only styles you should be
concerned about for the purposes of this article.To make it simpler to locate each
element and troubleshoot any odd problems, I like to add borders to my elements.
In addition, I added background colors to correspond with our previous wireframe
mockups. Perhaps you've already noticed, but the website resembles the mobile
wireframe in almost every way. By default, everything is piled on top of one
another.
Include a few placeholder sentences
It's a good idea to add some placeholder content after creating your HTML
elements. By doing this, the website will resemble its final version more closer’s
just going to copy and paste some lorem ipsum filler text into each element, so
don't get too fancy. Here is an example of what the Hero element contains: You’ll
see that I included placeholder text in varying lengths for each element to simulate
the appearance of the finished product.
Making the CSS mobile-friendly
Okay, so we've essentially finished creating the mobile layout! Adding consistent
padding to the sides (and top and bottom, if desired) is another way to improve the
way a website appears on a mobile device. This merely provides the user with a
small amount of breathing room. The content would feel confined if there was no
padding and no margin and it would be right up against the screen edge. To
maintain readability, you don't want to add too much space. I've added a global
padding of 20px in this instance, but you can change it to 10px, 15px, or any other
size you think looks best. Now let's add some styles for the tablet view.
Laying out a tablet in two columns
The Content and Sidebar elements are arranged side by side in the tablet
wireframe, as can be observed. Similar to a mobile device, everything else is
stacked vertically. To format the Content and Sidebar into two columns, we must
add a few styles. Instead of using CSS grid for this, we'll be using flexbox. The
Content and Sidebar elements will first be wrapped in a parent that we will classify
as "flex-container by altering our HTML. (Using ellipses to indicate extra markup
that isn't very important at this time)We must choose how we want the Sidebar and
Content to function in a two-column layout before we can begin writing our CSS.
There are several distinct. We will activate flexbox when the device width is 640
pixels or more by using a media query. This means that it will stay stacked on
phones with narrower widths. It will change to a flexbox layout when it reaches the
640-pixel threshold. This will guarantee that the Sidebar will always occupy 300
pixels, with the remaining area going to the Content section.
On desktop devices, cap the content width
The wireframes for the tablet and desktop computers bear a striking resemblance.
The content of both is located next to the sidebar. As previously mentioned, the
primary distinction for desktop is to set a max-width for the main content. By
doing this, the website will remain readable even on extremely wide monitors.CSS
helper classes since we'll probably need these styles for a number of different
elements; let's make an easily reusable helper class. We’ll update our CSS with the
following new class and related styles: This will center the element on widths
greater than 1200px and set its max-width to 1200px (converted into rem
units).Since we wish to restrict the width of the Content and Sidebar containers, we
will add the wrapper class to the flex-container wrapper in the HTML.
To sum up
That's it—we created a straightforward responsive layout that works well on
desktop, tablet, and mobile devices! You can view a demo of the website here if
you'd like to see it in use. Additionally, all of the project's code is available for
download on my GitHub page. Note: Gulp and Sass are used in this project. See
my Easy Gulp Tutorial here if you need assistance installing Gulp. I’m grateful
you read! Please share your thoughts about this tutorial in the comments section
below.
Contact US
Website: https://seoexpate.com
Email: info@seoexpate.com
WhatsApp: +8801758300772
Address: Head Office Shajapur Kagji para, Majhira, Shajahanpur
5801, Bogura, Banlgladesh
Flex Web Development.pdf

More Related Content

Similar to Flex Web Development.pdf

Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksAndolasoft Inc
 
9 basic principles of responsive web design
9 basic principles of responsive web design9 basic principles of responsive web design
9 basic principles of responsive web designCapital Numbers
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & ResourcesClarissa Peterson
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive designNeil Perlin
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with StyleTimothy Knight
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websitesFour Kitchens
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for BeginnersD'arce Hess
 
Graphic Design For Web
Graphic Design For WebGraphic Design For Web
Graphic Design For WebDeniz Gökçe
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignCantina
 
Web Designing Bugs - Fixes By Nyros Developer
Web Designing Bugs - Fixes By Nyros DeveloperWeb Designing Bugs - Fixes By Nyros Developer
Web Designing Bugs - Fixes By Nyros DeveloperNyros Technologies
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfAshleyJovelClavecill
 
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...Scott DeLoach
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by stepzoran Jelinek
 
What is responsive web design
What is responsive web designWhat is responsive web design
What is responsive web designSteven Geffen
 
Designing responsive web design in FIGMA
Designing responsive web design in FIGMADesigning responsive web design in FIGMA
Designing responsive web design in FIGMAFibonalabs
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web designNate Walton
 
Explain how the division element is used to setup the layout of a we.pdf
Explain how the division element is used to setup the layout of a we.pdfExplain how the division element is used to setup the layout of a we.pdf
Explain how the division element is used to setup the layout of a we.pdfSALES97
 

Similar to Flex Web Development.pdf (20)

Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
9 basic principles of responsive web design
9 basic principles of responsive web design9 basic principles of responsive web design
9 basic principles of responsive web design
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & Resources
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive design
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with Style
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websites
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
 
Graphic Design For Web
Graphic Design For WebGraphic Design For Web
Graphic Design For Web
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
 
Fewd week7 slides
Fewd week7 slidesFewd week7 slides
Fewd week7 slides
 
Sbwire 531031
Sbwire 531031Sbwire 531031
Sbwire 531031
 
Web Designing Bugs - Fixes By Nyros Developer
Web Designing Bugs - Fixes By Nyros DeveloperWeb Designing Bugs - Fixes By Nyros Developer
Web Designing Bugs - Fixes By Nyros Developer
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
 
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by step
 
What is responsive web design
What is responsive web designWhat is responsive web design
What is responsive web design
 
Designing responsive web design in FIGMA
Designing responsive web design in FIGMADesigning responsive web design in FIGMA
Designing responsive web design in FIGMA
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web design
 
BYOWHC823
BYOWHC823BYOWHC823
BYOWHC823
 
Explain how the division element is used to setup the layout of a we.pdf
Explain how the division element is used to setup the layout of a we.pdfExplain how the division element is used to setup the layout of a we.pdf
Explain how the division element is used to setup the layout of a we.pdf
 

More from Sonia Simi

Voice Broadcasting Service
Voice Broadcasting ServiceVoice Broadcasting Service
Voice Broadcasting ServiceSonia Simi
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Sonia Simi
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Sonia Simi
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Sonia Simi
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Sonia Simi
 
Flash Web Designs
Flash Web DesignsFlash Web Designs
Flash Web DesignsSonia Simi
 
CMS Web Designs
CMS Web DesignsCMS Web Designs
CMS Web DesignsSonia Simi
 
Dedicated Web Development
Dedicated Web DevelopmentDedicated Web Development
Dedicated Web DevelopmentSonia Simi
 
Ruby Rails Web Development
Ruby Rails Web DevelopmentRuby Rails Web Development
Ruby Rails Web DevelopmentSonia Simi
 
Node.js Web Development.pdf
Node.js Web Development.pdfNode.js Web Development.pdf
Node.js Web Development.pdfSonia Simi
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdfSonia Simi
 
Flash Web Development.pdf
Flash Web Development.pdfFlash Web Development.pdf
Flash Web Development.pdfSonia Simi
 
PHP Web Development.pdf
PHP Web Development.pdfPHP Web Development.pdf
PHP Web Development.pdfSonia Simi
 
GUI Web Designs.pdf
GUI Web Designs.pdfGUI Web Designs.pdf
GUI Web Designs.pdfSonia Simi
 
CMS Web Designs1.pdf
CMS Web Designs1.pdfCMS Web Designs1.pdf
CMS Web Designs1.pdfSonia Simi
 

More from Sonia Simi (15)

Voice Broadcasting Service
Voice Broadcasting ServiceVoice Broadcasting Service
Voice Broadcasting Service
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Flash Web Designs
Flash Web DesignsFlash Web Designs
Flash Web Designs
 
CMS Web Designs
CMS Web DesignsCMS Web Designs
CMS Web Designs
 
Dedicated Web Development
Dedicated Web DevelopmentDedicated Web Development
Dedicated Web Development
 
Ruby Rails Web Development
Ruby Rails Web DevelopmentRuby Rails Web Development
Ruby Rails Web Development
 
Node.js Web Development.pdf
Node.js Web Development.pdfNode.js Web Development.pdf
Node.js Web Development.pdf
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
Flash Web Development.pdf
Flash Web Development.pdfFlash Web Development.pdf
Flash Web Development.pdf
 
PHP Web Development.pdf
PHP Web Development.pdfPHP Web Development.pdf
PHP Web Development.pdf
 
GUI Web Designs.pdf
GUI Web Designs.pdfGUI Web Designs.pdf
GUI Web Designs.pdf
 
CMS Web Designs1.pdf
CMS Web Designs1.pdfCMS Web Designs1.pdf
CMS Web Designs1.pdf
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Flex Web Development.pdf

  • 1. Welcome To Flex Web Development Use flexbox to create a responsive website layout (step-by-step guide) Flexbox is a relatively new front-end feature that greatly simplifies the process of creating a responsive website layout. In the past, in order to create a layout that looked good on a website, you had to use tables or float grids. Furthermore, those approaches aren't the most effective for responsive design, which ensures that the website looks good on desktop, tablet, and mobile platforms. Learn how to use flexbox if you want to stay up to date Flex Web Development with web development trends. Due to the fact that float grids are rapidly becoming obsolete. This is a step-by-step tutorial that will walk you through creating a basic responsive website layout. Here's a brief overview of the steps you should take in this tutorial: How to create a basic website layout  Draw the layout as it will appear on a desktop, tablet, and mobile device.  Utilizing semantic HTML and CSS, begin coding the fundamental layout.  Construct the remaining layout section by section.  Use a mobile-first approach when writing CSS, starting with the smallest widths and working your way up to larger ones.
  • 2. As I go, I'll share my thought processes and best practices that I've discovered. Feel good? Now let's get going! Wire framing the design of the webpage Diagrams of every component of your website's organization are called wireframes. They can be very basic and only cover the essentials, or they can be extremely detailed and resemble designs. We’re going to use a very basic wireframe for our purposes here. The website will be divided into its main sections, and we will determine how each will appear on desktop, tablet, and mobile devices. The Header, Hero, Content section, Sidebar, and Footer are the sections that we will be creating. As you can see, every section—including the sidebar—basically stacks atop one another in a single, long column. The simplest method for effectively fitting content onto a small device, such as a mobile phone, is stacking. Attempting to place the sidebar next to the main content would be pointless because phones aren't wide enough to accommodate both. Now, expanding in width, this is how the tablet is laid out: The primary distinction is that the sidebar can now fit next to the main content section because tablets are wider than phones. Additionally, every section fills the tablet's entire width.And this is the desktop arrangement for the largest device: You need to start thinking about
  • 3. how your desktop website will appear on extremely wide monitors. would be more difficult to read and scan the website content if it were displayed full-width on a large monitor. Imagine if you had to force your eyes to move from the left to the right. It would turn away users and is far too much work. Now that we have a clear idea of how we want the website to look, it's time to get fun and start creating everything in HTML and CSS! Constructing the fundamental forms and structures We will create an HTML element for every wireframe section by working from our created wireframes. As you can see, every wireframe element now has an equivalent element in the HTML. Additionally, I added only basic placeholder text—no actual content. Add the first few CSS properties Now that we have some very basic CSS added, we can start to make this layout look nice! Certain very general styles, such as font styles and border-box settings for box-sizing, are not displayed. But these are the only styles you should be concerned about for the purposes of this article.To make it simpler to locate each element and troubleshoot any odd problems, I like to add borders to my elements. In addition, I added background colors to correspond with our previous wireframe
  • 4. mockups. Perhaps you've already noticed, but the website resembles the mobile wireframe in almost every way. By default, everything is piled on top of one another. Include a few placeholder sentences It's a good idea to add some placeholder content after creating your HTML elements. By doing this, the website will resemble its final version more closer’s just going to copy and paste some lorem ipsum filler text into each element, so don't get too fancy. Here is an example of what the Hero element contains: You’ll see that I included placeholder text in varying lengths for each element to simulate the appearance of the finished product. Making the CSS mobile-friendly Okay, so we've essentially finished creating the mobile layout! Adding consistent padding to the sides (and top and bottom, if desired) is another way to improve the way a website appears on a mobile device. This merely provides the user with a small amount of breathing room. The content would feel confined if there was no padding and no margin and it would be right up against the screen edge. To maintain readability, you don't want to add too much space. I've added a global padding of 20px in this instance, but you can change it to 10px, 15px, or any other size you think looks best. Now let's add some styles for the tablet view.
  • 5. Laying out a tablet in two columns The Content and Sidebar elements are arranged side by side in the tablet wireframe, as can be observed. Similar to a mobile device, everything else is stacked vertically. To format the Content and Sidebar into two columns, we must add a few styles. Instead of using CSS grid for this, we'll be using flexbox. The Content and Sidebar elements will first be wrapped in a parent that we will classify as "flex-container by altering our HTML. (Using ellipses to indicate extra markup that isn't very important at this time)We must choose how we want the Sidebar and Content to function in a two-column layout before we can begin writing our CSS. There are several distinct. We will activate flexbox when the device width is 640 pixels or more by using a media query. This means that it will stay stacked on phones with narrower widths. It will change to a flexbox layout when it reaches the 640-pixel threshold. This will guarantee that the Sidebar will always occupy 300 pixels, with the remaining area going to the Content section. On desktop devices, cap the content width The wireframes for the tablet and desktop computers bear a striking resemblance. The content of both is located next to the sidebar. As previously mentioned, the
  • 6. primary distinction for desktop is to set a max-width for the main content. By doing this, the website will remain readable even on extremely wide monitors.CSS helper classes since we'll probably need these styles for a number of different elements; let's make an easily reusable helper class. We’ll update our CSS with the following new class and related styles: This will center the element on widths greater than 1200px and set its max-width to 1200px (converted into rem units).Since we wish to restrict the width of the Content and Sidebar containers, we will add the wrapper class to the flex-container wrapper in the HTML. To sum up That's it—we created a straightforward responsive layout that works well on desktop, tablet, and mobile devices! You can view a demo of the website here if you'd like to see it in use. Additionally, all of the project's code is available for download on my GitHub page. Note: Gulp and Sass are used in this project. See my Easy Gulp Tutorial here if you need assistance installing Gulp. I’m grateful you read! Please share your thoughts about this tutorial in the comments section below. Contact US Website: https://seoexpate.com Email: info@seoexpate.com WhatsApp: +8801758300772 Address: Head Office Shajapur Kagji para, Majhira, Shajahanpur 5801, Bogura, Banlgladesh