Create A Cool Layout Using CSS
Make money for being or staying online/internet.

You will get a $5 starting gift when you join using this link:: GET THE OFFER NOW!!

Css is every web designer's favorite styling language to create layouts, graphics, shapes among others. To make it, even more, cooler it's very simple to learn, Yeah you heard me right, It's simple to learn.

To be more specific, in this tutorial I concentrated more on the shapes. With CSS shapes it enables us to flow content around circles, polygons, masks, ellipse, and other shapes.

In this post, I will share you with the youtube tutorial source code and also explain some of the CSS properties that I used to come up with such layout or effect.

The clip-path Property

The clip-path CSS property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those outside are hidden.

The shape-outside Property

The shape-outside CSS property defines a shape—which may be non-rectangular—around which adjacent inline content should wrap.


Please note you can use this code in any project that you want, so the markup that i used in the tutorial was just for the layout(it's your choice, your limit). The main focus is on the styling file.


<div class="container">

    <div class="info">
      <img src="uganda.jpg" alt="uganda">
      <div class="content">
        <h1>Happy Independence 9th October 2020</h1>
        <p>Place your content here</p>


CSS code

/*This code is just for centering the content in the middle of the page*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
/*End here*/

/*Giving the container equal width both on the left & right side*/
  max-width: 80%;
  margin:0 auto;
/*Ends here*/

/*This is where the magic happens.*/
.info img{

  clip-path: circle(35% at 50% 50%);
  shape-outside: circle();

@media screen and (max-width: 684px){
  .info img{
    clip-path: none;

Download the project files from my Github repo.

Save up to 80% with this Domain & Shared Hosting package deal! 80% OFF - GET OFFER NOW

Related Post(s)

» Learn how to create Gradient Backgrounds using CSS

» How To Create A Stacked Gallery Using HTML And CSS Source Code

» Learn how to create responsive images with CSS

» How do I wrap text in a pre tag?[SOLVED]

» Learn how to create a custom scrollbar with CSS.

collections_bookmark Category :: Css
date_range Published :: 2 years ago At: 05:23 PM
event_note Detailed Date :: Oct 09th, 2020
person Writer :: Code
8 months ago

How to force the browser to cache a page?

There are several ways to force a web browser to cache an HTML page:

8 months ago

How can i cache pages using php?

You can use the output buffering functions in PHP to cache pages. Output buffering allows you to store the output of a PHP script in a buffer, which you can then manipulate before sending it to the client.

8 months ago

PHP explained in a few lines

PHP is a popular programming language that is widely used for web development. It stands for "PHP: Hypertext Preprocessor" and is a server-side scripting language. This means that it is executed on the server, rather than in the user's web browser.

8 months ago

HTML explained in a few lines

HTML, or Hypertext Markup Language, is the standard markup language for creating web pages and web applications. It is used to structure and organize content on the web, and to create the basic structure and layout of a webpage.

8 months ago

CSS explained in a few lines

CSS, or Cascading Style Sheets, is a stylesheet language used for describing the look and formatting of a document written in HTML. CSS is used to control the presentation of multiple web pages at once, making it a crucial tool for web developers and designers.

2 years ago

A JavaScript library for formatting and manipulating numbers - Numeral.js

Check out this lightweight JavaScript library used for formatting and manipulating numbers.

2 years ago

All Countries Drop Down List | HTML Select Country Name

This simple country dropdown list is freely available for you to copy and use in your project forms.

2 years ago

HTML Entities Code Alphabet Discovery Using JavaScript

In this post I will show how writing just a few lines in JavaScript will allow you to render, browse and discover the alphabetical letters using a set of HTML entity codes.