Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Chat App illustration

Sevich-Kah 130

@Sevich-Kah

Desktop design screenshot for the Chat app CSS illustration coding challenge

This is a solution for...

  • HTML
  • CSS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


I surely have to re-learn positioning

Community feedback

@SadeeshaJayaweera

Posted

Congratulations on completing the Challenge ✌️. I Hope this might be helpful for you.

Re-learning and mastering positioning in CSS is a valuable skill for web development. Properly understanding and using CSS positioning can help you create complex layouts and responsive designs with ease. Here's a brief overview of the different positioning methods in CSS to get you started:

  1. Static Positioning (default):

    • Elements are positioned in their normal flow.
    • The position property is set to static by default.
  2. Relative Positioning:

    • Elements are positioned relative to their normal flow position.
    • You can use top, right, bottom, and left properties to offset the element from its normal position.
    • Useful for fine-tuning element placement within its containing element.
  3. Absolute Positioning:

    • Elements are taken out of the normal flow and positioned relative to the nearest positioned ancestor (an ancestor with position other than static) or to the initial containing block.
    • Useful for creating overlays, tooltips, or absolute positioning within a relative or absolute container.
  4. Fixed Positioning:

    • Elements are positioned relative to the viewport (browser window) regardless of scrolling.
    • Commonly used for fixed navigation bars, modals, or elements that should stay in a fixed position while scrolling.
  5. Sticky Positioning:

    • Elements are initially in the normal flow but become fixed once they reach a specified scroll position.
    • Useful for creating elements that stick to the top of the page as the user scrolls down.
  6. Flexbox and Grid Layout:

    • CSS Flexbox and Grid Layout provide powerful and responsive layout options without the need for complex positioning.
    • Flexbox is great for one-dimensional layouts (e.g., rows or columns), while Grid Layout is suitable for two-dimensional layouts.
  7. Centering Elements:

    • To center elements horizontally and vertically, you can use techniques like flexbox (justify-content and align-items), CSS Grid, or the margin: 0 auto; trick for block-level elements.
  8. Media Queries:

    • Use media queries to make your layouts responsive, adjusting the positioning of elements based on screen size and orientation.

To master positioning, it's helpful to practice by building layouts and experimenting with different positioning techniques. CSS can sometimes be tricky, but with practice and a solid understanding of the fundamentals, you'll become more confident in your ability to create beautiful and responsive web designs.

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord