The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS replacement for :before and :after for ie6????

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #23104


    I have to print the line numbers in all the printable reports which are basically tables.
    I first thought of using :before in conjunction with the "counter" and "content" property to insert the line number before each row. But this does not work on ie6 as :before and :after are not compatible with ie6. Can you suggest me any different way?
    I also tried to add column column that will have the line number. But this is really tedious as the number of printable reports is really huge. By using CSS, I’ll be able to show the line numbers by just including a single file in each report.
    Also if I can display the text on the web page through CSS, the problem can be solved. Is there any IE6 compatible way to do the same?
    Waiting for your response.



    if i were you i would use jQuery to do something like this, that does require javascript to be enabled though
    the code using jQuery would look something like this:

    $(‘element you want to be selected’).next()…stuffHere

    jQuery supports selecting the next tag the previous tag the first tag and much more, a full list of supported selectors can be found here

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.