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

  • SEARCH
  • Home
  • 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 9185089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:12:44+00:00 2026-06-17T19:12:44+00:00

I need to add up-right triangle in a cell. How to do this? I

  • 0

I need to add up-right triangle in a cell.

enter image description here

How to do this?

I tried to add span and icon inside span, but it goes awry

<span style="position: relative;float:right;top:-30px;">@Html.ImageContent("triangle_bonus.png", "")</span>
  • 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-17T19:12:44+00:00Added an answer on June 17, 2026 at 7:12 pm

    Using CSS Triangles:

    You basically have a 0 height, 0 width element, and use the borders to construct the triangle. Because the line between borders (for example, between top and left) is diagonal, you can create nice looking, solid color triangles with it!

    Here’s an Example!

    HTML:

    <table border="1">
        <tr>
            <td class="note">Triangle!</td>
            <td>No Triangle!</td>
        </tr>
    </table>
    

    CSS:

    td {
        padding: 20px;
    }
    .note {
        position: relative;
    }
    .note:after { /* Magic Happens Here!!! */
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0; 
        height: 0; 
        display: block;
        border-left: 20px solid transparent;
        border-bottom: 20px solid transparent;
    
        border-top: 20px solid #f00;
    } /* </magic> */
    

    Advantages:

    • No Images! – Meaning, no extra request.
    • No Additional Markup! – Meaning, you don’t litter your HTML with unsemantic markup.
    • Looks good on all sizes! – Because it renders in the browser, it would look perfect on any size and any resolution.

    Disadvantages:

    • Depends on pseudo-elements – Meaning that lower versions of IE will not display the triangle. If it’s critical, you can modify the CSS a bit, and use a <span> in your HTML, instead of relying on :after.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is right in front of me, but I need to add
Basically this code below returns the right information, but I need to add the
I need to add an icon to custom right click context menu and a
How would you add a span tag to the text inside a hyperlink? Right
I need to add a command to right click menu in Word shown after
I can't access a element with its href. Like this example, i need add
We need to add a javascript element inside an iframe (its inside the same
I need to add an item to folders right click menu when clicked send
I need to add a tags system to one of my websites. Right now
I need to add columns to an existing csv file ,but i can't find

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.