Questions tagged [css-shapes]

CSS-Shapes are made by the use of Cascade Styling Sheets to make HTML elements into shapes and images. The most basic shapes include triangles, squares, and circles but can be made into more advance shapes such as hearts, octagons, and stars.

CSS Shapes pertain to questions about the rendering, bugs, and technical problems of HTML/CSS made shapes. These can be used on any tag but needs to be displayed as a block or inline-block elements. CSS Shapes can be used to direct viewers attention to certain elements on the page, make graphics, page structure, and objects.

Here is a simple CSS triangle,

.left-tri {
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; 
    border-right: 10px solid brown; 
}

Here is the most common CSS shape,

.square {
    width: 100px;
    height: 100px;
    background: brown;
}

One benefit of using a CSS Shape is the ability to render to any monitor's display without becoming pixelated. CSS Shapes are very similar to an SVG(Scalable Vector Graphic) but remove the use of an image file. They also can allow the developer to rely more on CSS to style the page.


CSS-Shapes (CSS Exclusion) is a new tool Adobe has been working on. Currently the browser support is very poor. With CSS Exclusion you can add paths for text to wrap around or inside of that object to get flush text structure without an image. (Example, must enable CSS Exclusion on your browser to view)

Not all CSS Shapes have back browser support, for CSS Exclusions refer to the Browser Support tab.


References

Browser Support

Shape Generator Tools

1859 questions
0
votes
3 answers

create an arrow using css

Is there any way to create an arrow like that in the following button, using CSS? I know how to create triangle-like arrows like this #triangle_arrow { top: 3pt; content: ""; display: inline-block; width: 0.5em; …
georgia
  • 45
  • 1
  • 7
0
votes
1 answer

Can this shape be drawn in css?

I am struggling currently with creating this effect on my navbar, effectively it will curve down like this but I've had a look everywhere on the web and can't seem to find anything on how to re-create this in css (or if its even possible) If anyone…
user6073700
  • 230
  • 4
  • 17
0
votes
3 answers

Image inside Hexagon in my example

How put inside the class hexagon image for hexagon.. i wanna change background-image on the tag image .. My example: http://codepen.io/anon/pen/ZBzYqp
TriSTaR
  • 405
  • 3
  • 19
0
votes
4 answers

How to get this partially diagonal shape from an image in CSS

I am using bootstrap 4 and trying to create this shape of a image: The entire square is my image, but I'd like to cut off the red part or make it transparant in order to see the background-color.
Jason Hall
  • 75
  • 1
  • 8
0
votes
2 answers

How to center an icon inside css shapes?

I created a triangle shape using CSS borders which I want to stay fixed at the bottom of viewport, and also I have a Bootstrap Glyphicon which I want to be centered inside that CSS triangle shape but I can't figure out how to do it. Here's my…
startToday
  • 97
  • 1
  • 6
0
votes
1 answer

CSS shapes for traffic lights

I'm struggling here, I'm very new to CSS and don't know what's going wrong with these shapes here. I'm trying to get the circles on top of the square. I'm doing some research and trying to learn as much as possible for my controlled assessment, I…
0
votes
2 answers

Trying to make a triangle made of borders to stop expanding at 1200px

i wonder if anyone can help, easiest way to show it is the temporary url here: http://norsk-kulturhus-nettverk.a.heltblank.no/ It is the top image. The grey triangle should always follow the image size. Anyone got some tips? Edit: Tried…
0
votes
3 answers

How to style a letter with different colors

I want to use a letter which hides the overflows of colors. Want something like google icon but completely built with CSS. Is there a solution to hide the overflow of that red rectangle? Want to rebuilt the Google logo. #letter { background:…
Front-end Developer
  • 400
  • 1
  • 6
  • 17
0
votes
1 answer

circlebar.js:11 Uncaught TypeError: $(...).find(...).circle is not a function

I am trying to build a circle bar with jQuery, but there is one error showing in the console, which cannot be solved. Have googled around, but nothing happened. Does anyone know how I can fixed this error? It is right that the code cannot run by…
Front-end Developer
  • 400
  • 1
  • 6
  • 17
0
votes
3 answers

Grayscaled text over cover image

I am trying to create a layout similar to this: I know I can create the "A" using svg or clip-path but the problem is I want to keep the background inside the "A" aligned with the body background i.e if the window resizes the background image will…
Imran Bughio
  • 4,811
  • 2
  • 30
  • 53
0
votes
2 answers

How to draw heart using HTML/CSS table?

I'm trying to draw heart: using HTML table's nth-child property, but can't figure out how to do it: Codepen table tr td:nth-child(n+3):nth-child(-n+7) { background-color: red; }
Alex D.
  • 79
  • 6
0
votes
2 answers

Trying to draw dotted line with CSS

I'm trying to draw this with CSS, I've got no solution. Can anyone help me with this? Ps: I've done little searching stuff, Thank you.
Telmen
  • 23
  • 1
  • 5
0
votes
1 answer

cannot make shape styled

I want to have a horizontal bar shape within my footer div but I can't get it visible. In JS Fiddle it works but not in my chrome debugging. HTML: Bootstrap Theme Simply Me
xetra11
  • 7,671
  • 14
  • 84
  • 159
0
votes
1 answer

Curve shape paper in css

i need book page turn Animation Effect loading screen . i need curve shape paper like book attached image like that. in my paper like rectangle how to make cure shape paper i set this image as background bub i need paper like that .paperfixed…
sridharan
  • 2,011
  • 10
  • 36
  • 61
0
votes
2 answers

apply 1px borders to CSS speech bubbles?

How can we apply 1px borders to these speech bubbles? This similar SO post did not work here, as we use a different approach to generate the speech bubbles .chat-messages { width: calc(100%); padding-bottom: 5px; background-color:…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
1 2 3
99
100