Create GeeksforGeeks logo using HTML and CSS
Last Updated :
21 May, 2024
Creating a logo using HTML and CSS involves designing graphical elements with HTML tags, styling them using CSS properties such as colors, sizes, and positions, and possibly incorporating SVG graphics or images. This approach allows for custom, scalable, and interactive logo designs on web pages.
GeeksforGeeks is an online study platform and we will see how to design a GeeksforGeeks logo using HTML and CSS only.
Steps:
Step 1: To create the GFG logo, use two inline divs for circles, wrapped in a flex-display wrapper div. Apply a 10px solid green border for the outline.

Step 2: Now create a triangle on both the circles using the pseudo-element: "after" and absolute position property. After applying the triangle we will get the shape like this.
Here the triangle's background-colors are yellow, this is just for explanation. Change the background-color of triangles into white.After applying the white background color into the triangles the result is :

Step 3: Now using the pseudo-element :before and position absolute property, create a square. You can apply this rule to any of the circles. The resulting logo looks like this:

Approach:
- Create two divs having classes named circle1 and circle2, and wrap them into a parent div having the class named wrapper.
- Now assign the CSS property to the wrapper class and style both the circlesÂ
- Add the invisible triangles into both the circles using pseudo-element :after
- Now add square onto the logo using before pseudo-element (we are not using after (pseudo-element) because we already used it for creating triangle).
Example: In this code we will see the implementation of geeksforgeeks logo using htnl and CSS .
HTML
<!DOCTYPE html>
<html>
<head>
<style>
.wrapper {
display: flex
}
#circle {
height: 100px;
width: 100px;
border: 20px solid green;
border-radius: 100px;
position: relative;
}
#circle:after {
content: "";
position: absolute;
border-top: 100px solid transparent;
top: -35px;
}
.circle1:after {
border-left: 140px solid white;
left: -50px;
top: -35px;
}
.circle2:after {
border-right: 140px solid white;
right: -50px;
}
.circle1:before {
content: "";
height: 20px;
width: 276px;
position: absolute;
background: green;
left: -18px;
top: 45px;
z-index: 1;
}
</style>
</head>
<body>
<div class="wrapper">
<div id="circle" class="circle1"></div>
<div id="circle" class="circle2"></div>
</div>
</body>
</html>
Output:
Similar Reads
How to Create Google logo with HTML and CSS ? The Google logo is a globally recognized symbol of the tech giant, known for its colourful and playful design. It consists of the word "Google" in a unique font, with each letter in a different colour, representing the company's diverse range of products and services. In this article, we will design
3 min read
How to create a Hero Image using HTML and CSS ? A Hero Image is a large image with text, often placed at the top of a webpage. Hero images can be designed using HTML and CSS. This article contains two sections. The first section attaches the image and designs the basic structure. The second section designs the images and texts on the images. The
2 min read
How to Create Neon Light Button using HTML and CSS? The neon light button animation effect can be easily created by using HTML and CSS. By using HTML, we will design the basic structure of the button and then by using the CSS, we can create the neon light animation effect. HTML code: In this section, we will design a simple button structure using anc
2 min read
How to create and use CSS Image Sprites ? In this article, we are going to learn how we can how to create and use CSS Image Sprites.CSS Image Sprites are nothing but a way to reduce the HTTP requests from the image resources. A CSS Image Sprite is a single image file containing all images on a document page. Image sprites are advantageous s
3 min read
Create a Galaxy Background using HTML/CSS In this article, we will see how to create the galaxy background using the HTML & CSS, along with knowing the basic CSS properties used & will understand it through the example. A galaxy background means a small bunch of circles having different sizes with different shades and a dark backgro
3 min read