Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8608317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:34:52+00:00 2026-06-12T03:34:52+00:00

This article shows several shapes that can be created in CSS. The square the

  • 0

This article shows several shapes that can be created in CSS. The square the the rectangle easily support adding text inside the shape. The oval and circle cuts the text out. The triangle doesn’t show any text. The heart shows the text behind it. And because text was added the diamond doesn’t appear to be a diamond anymore.

Is there any decent way for one to go about adding text to these CSS Shapes? Is there something easier than using floating divs to position the text in a separate element onto of the CSS Shape element?

Example of some results: http://jsfiddle.net/EVBYt/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:34:54+00:00Added an answer on June 12, 2026 at 3:34 am
    • CSS shapes,
    • text in a safe zone in a CSS shape and
    • text in CSS shapes where text will fill available space as much as possible

    are three very different beasts!

    The shapes you refer to are made with one constraint: a single element is used. This leads in some cases to 0x0 px elements with background-color entirely applied onto pseudo-elements. Obviously your text won’t display properly in these cases and you’ll have to redo entirely these shapes with other methods.

    CSS regions has been proposed by Adobe to W3C. Just wait a few years for standardisation and implementation 🙂

    During this long wait, Tantek Celik and Eric Meyer who played with blank divs ~10 years ago (example: http://meyerweb.com/eric/css/edge/curvelicious/demo.html ) are still relevant.
    Provided you want to achieve designs that will explode when larger text is selected by users in IE8 or with a single level of zoom text in Firefox. Though with fluid sizing in em maybe?

    I’d use SVG if I was forced to style text into such complicated shapes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This article on MSDN states that you can use as many try catch blocks
This article on memory leaks emphasizes that having superfluous event listeners leads to memory
This article explains how to correct an exception that's often seen when switching an
this article suggests you can use Color c = Color.decode(FF0096); however this understandably throws
This article says: Every prime number can be expressed as 30k±1 , 30k±7 ,
In this article by Sam Saffron, he mentions that Stack Overflow has a route
My articles can appear on several sites, so as well as an article model
This article shows how to create a custom activity in a rehosted Workflow designer
I read this article which shows how to import/export projects in Eclipse (although it
My question involves this simple walkthrough shown in the article Preserve Size and Location

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.