About 9,180,000 results
Open links in new tab
  1. How To Create Different Shapes with CSS - W3Schools

    Learn how to create different shapes with CSS. Track your progress - it's free! Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, …

  2. how to draw a rectangle in HTML or CSS? - Stack Overflow

    Use <div id="rectangle" style="width:number px; height:number px; background-color:blue"></div> This will create a blue rectangle.

  3. Four Simple Ways to Draw a Rectangle in HTMLSitePoint

    Mar 8, 2023 · Four basic ways to draw a shape on the Web are via HTML and CSS, with CSS alone, with SVG, and with the HTML canvas element. HTML and CSS can be used to create …

  4. The Shapes of CSS - CSS-Tricks

    Oct 1, 2018 · Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. Add border-radius and you …

  5. Basic shapes with shape-outside - CSS: Cascading Style Sheets

    Nov 27, 2024 · CSS Shapes can be defined using the <basic-shape> type. In this guide, we discuss creating rectangles, circles, ellipses, and polygons with the shape-outside property. …

  6. Creating a Rectangle with just CSS | CSSBattle Blog

    Dec 30, 2024 · The most straightforward way to create a rectangle is by setting width and height properties on a block element (eg. <div>). And as you might guess, setting width and height to …

  7. Creating basic and more advanced shapes in CSS - Albert Walicki

    Nov 14, 2020 · Squares and rectangles are the most common and natural shapes in web development. You need to add width and height, and that’s it. First two shapes are created. …

  8. Shapes in CSS - Alvaro Montoro

    Oct 8, 2023 · Initially, everything is a rectangle in HTML. So, a rectangle is simple to draw; specify a width and a height. If that doesn't work, you may use an element with an inline display, …

  9. How to Create Shapes using CSS - GeeksforGeeks

    Sep 18, 2024 · Creating a Rectangle: A rectangle is simply a div with unequal height and width. Here's an example of how to create a rectangle. Output: 4. Creating a Circle: A circle is …

  10. SVG Rectangle - W3Schools

    SVG Rectangle - <rect> The <rect> element is used to create a rectangle and variations of a rectangle shape. The <rect> element has six basic attributes to position and shape the rectangle:

  11. Some results have been removed
Refresh