Skip to content

This repository delves into the box model, flexbox, and key layout techniques in CSS. We explored margin, padding, and the differences between content-box and border-box. Additionally, we introduced the flexbox layout model, which provides a flexible and efficient way to arrange items within a container.

License

Notifications You must be signed in to change notification settings

OpenCodeChicago/HTML-CSS_fundamentals_part2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML/CSS Fundamentals: Box Model & Flexbox

GitHub last commit GitHub license

This repository delves into essential CSS layout techniques, focusing on the box model, flexbox, and understanding the intricacies of content-box vs. border-box. It is ideal for those looking to enhance their web development skills with a solid grasp of layout principles.


What We Covered

In this lesson, we explored:

  • Box Model: Understanding how the box model affects the layout, including padding, margin, and border.
  • Content-Box vs. Border-Box: Learning the differences between these two box-sizing models and how they influence element sizing.
  • Flexbox Basics: An introduction to the flexbox layout model, which provides a flexible and efficient way to arrange items within a container.

Images

box-model Image 1 (CSS box-smodel)

flex-box Image 2 (CSS flex-box)


Getting Started

To explore the content of this repository:

  1. Clone the Repository:
    git clone https://github.com/OpenCodeChicago/HTML-CSS_fundamentals_part2.git
  2. Open the Project: Open the index.html file in your browser to see the basic structure and styling in action.
  3. Edit and Experiment: Modify the HTML and CSS files to see how changes affect the appearance and structure of the web page.

Folder Structure

This repository follows the folder structure below:

  • index.html: This is the main HTML file where the content and structure of the web page are defined.
  • styles.css: This external CSS file is used for styling the HTML elements.

What's Next

As we continue to dive deeper into HTML and CSS, the next lesson will cover:

  • Forms: Learning how to create user-friendly forms, including input types like text fields, checkboxes, radio buttons, and submit buttons.
  • Form Accessibility: Best practices for making forms accessible to all users, including proper labeling and structuring.
  • Styling Forms: Understanding how to use CSS to enhance the visual appearance and usability of form elements.

Stay tuned as we build on these foundational skills and move toward more advanced concepts in web development.

Languages and Tools:


Issues

If you encounter any issues or have suggestions for improvements, please let us know by opening an issue on GitHub.

License

This repository is licensed under the MIT License. See the LICENSE file for more details.

Feedback

Your feedback is valuable to us! If you have any thoughts on how we can improve, please submit feedback or contact us directly.

Contact Us

For any questions, suggestions, or further discussion, feel free to reach out to us:

About

This repository delves into the box model, flexbox, and key layout techniques in CSS. We explored margin, padding, and the differences between content-box and border-box. Additionally, we introduced the flexbox layout model, which provides a flexible and efficient way to arrange items within a container.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published