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 7540043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:32:28+00:00 2026-05-30T07:32:28+00:00

I have a table. Inside that table some td have the class arrow. For

  • 0

I have a table. Inside that table some td have the class “arrow”. For the td that have this class I would like to put an arrow (triangle) on the left border of that td. I would like to use only css to achieve that. Note that I wish the arrow to start below the top border and end above the bottom border. I tried to apply several “pure css arrows tutorials” I found on the internet but I do not manage to make it work on td. I hope I was clear and I hope someone might help. Thank you in advance for your replies. Cheers. Marc.

http://cssdesk.com/PzASe

My HTML :

<table>
  <tr>
    <td>td1</td>
    <td class="arrow">td2</td>
    <td class="arrow">td three</td>
  </tr>
  <tr>
    <td>td4</td>
    <td class="arrow">td five</td>
    <td class="arrow">td6</td>
  </tr>
</table>

My CSS:

table{
  border-spacing: 0px;
  border-collapse: collapse;
  text-align:center;
  vertical-align:middle;}

td{
  padding:10px;
  border:1px solid purple;}

.arrow:before { 
  content:'';
  position: relative; 
  top: 0; 
  left: -10; 
  border-top: 5px solid transparent; 
  border-bottom: 5px solid transparent; 
  border-right: 5px solid transparent; 
  border-left: 5px solid  black; 
}
  • 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-05-30T07:32:29+00:00Added an answer on May 30, 2026 at 7:32 am

    What is your target audience with this? Most of the CSS techniques for drawing shapes like triangles involve things like insert new elements, and advanced CSS properties (read: don’t work in IE), I would suggest biting the bullet and using an old-fashioned background image.

    If you’re doing it as a proof of concept, and you don’t care what browser a visitor is using, have you looked at this tutorial on CSS tricks?

    You would need to insert a <div> into those cells, and then apply styling like this:

    .arrow div {
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid blue;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has a class, and some td elements inside of
I have a C# method that I would like to use to update some
I have a small form inside a table. POSTing that form creates a new
I have a UIButton that is created inside of each table cell. I want
I have a table with an image inside: <table style=border: 3px solid rgb(0, 0,
We have a class library that does some basic operations similar to an ORM,
I have ViewModel that has inside a Model and some extra properties. There are
I have some hash table that is losing its values at some point in
I have table inside a div tab. The table has 40 rows in it
i have table unser it i have one td with elemets inside the menu

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.