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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:05:25+00:00 2026-06-13T01:05:25+00:00

I’d like to represent a grid of scores, with two coordinates : system and

  • 0

I’d like to represent a grid of “scores”, with two coordinates : “system” and “location”.
The score is a numeric value between 0 and 5, while the two others coordinates are strings.

I have to represent this as a IE7-Compatible HTML table, however I’m facing many problems :

As the headers (“location”) are strings, they take much more place than the cells (numeric), and so I lose much space (especially because location strings can be pretty long). So there is the matter :

I’d like to be able to rotate my headers.

I was able to do this, using various jQuery plugins (the one used in screenshots is this one), it worked in various navigators (see here) but none of them worked in IE7 (see here)

Without jQuery, using

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

I was able to rotate the text, but its container was still not adapting to the new size (see here) : the width was not reduced and the height not increased. So, using this :

table tr:first-child { height: 200px; }

I fixed the first row height (which is not perfect, cause I cannot know how long the cell contents are going to be, but still…), but this did not change the cell width : see here. Using this :

table tr:first-child td { width: 30px; }

Did not change anything, the width was still as large as it needed to be before the rotate.

Now, I would like to know if there is a way to make this work under IE7, if possible without fixed heights/widths (like here). Also, maybe there is another way to represented my data than an HTML table :

  • Maybe a scatter plot with vertical legends
  • Using a big jQuery grid plugin, like jqGrid : however, I need to find one that can rotate table headers
  • Using PNGs in replacement of the text headers. However, I may have more than 400 columns in my table, would that be efficient ?

To summarize, here are my questions :

  • Is there any jQuery grid plugin, compatible with IE, capable of rotating headers ?
  • Is it possible to make this work in IE using CSS or even Javascript ?

Thank you,

PS: My restriction is to be IE-compatible (at least IE7, better IE6 but if that’s not possible, that’s not possible.), not to avoid using JavaScript. When I can I try not to use it, but if needed, it will be available on the client machines. However, the JS libs I use still need to be IE7 compatible.

  • 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-13T01:05:26+00:00Added an answer on June 13, 2026 at 1:05 am

    I was finally able to do what I wanted, using jQuery and RaphaelJS.

    The trick: converting the text to SVG for easier manipulation. Because this is all done using JavaScript, this doesn’t alter the web page semantics.

    Howto

    HTML

    <table>
        <thead>
            <tr>
                <th><div id="column1"><span>aaaaaaaaaaa aaaaaaaa</span></div></th>
                <th><div id="column2"><span>bbbbbbb bbbbbbbbbbbb</span></div></th>
                <th><div id="column3"><span>ccc cccccccccccccccc</span></div></th>
                <th><div id="column4"><span>ddd ddd dddddddddddd</span></div></th>
                <th><div id="column5"><span>eee eee eee eee eee </span></div></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>5</td>
            </tr>
            <tr>
                <td>I</td>
                <td>II</td>
                <td>III</td>
                <td>IV</td>
                <td>V</td>
            </tr>
        </tbody>
    </table>
    

    As you can see, in each column header, we create a div, with a different id each time (with Django, I use the object ID for this) if we want to manipulate each column independently later, with an inline span, and then with the content.

    Javascript

    Then, use the following code (at the beginning of your page, but not in , better just after :

    $(document).ready(function(){
    $('tr th div').each(function (index, div){
    R = Raphael($(div).attr('id'), 10, 200);
    R.text(5, 100, $(div).find('span').text())
    .rotate(-90, true);
    $(div).find('span').hide();
    });
    });
    

    You will need to adapt the numeric values (except the -90, of course) to your cell sizes.
    And of course, you will have to import jQuery and RaphaelJS in your code. I used jquery-1.8.2.min.js and raphael-min.js, both available on their respective project sites.

    CSS

    Of course you can use your own CSS with this, but if you encounter difficulties theming the inline text, try to use RaphaelJS’s .attr(…) functions. Remember you have to chain them with R.text(…) line :

    R.text(...).attr(...).attr(...).rotate(-90, true);
    

    Final render

    I was able to get something like this :

    Final render
    (source: ompldr.org)

    Next Step

    My next step is now to be able to align the cell contents down to the bottom, see here.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have two tables with like below codes: Table: Accounts id | username |
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I would like to count the length of a string with PHP. The string
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.