Menu

Making header centered (IE)

Help
2005-02-03
2012-10-08
  • Daniel Blazquez

    Daniel Blazquez - 2005-02-03

    Hi everybody,

    i posted this help request a weeks ago but apparently nobody can help me; i 've tried too to solve the problem, so here comes again my issue

    The goal is to display centered the header of each column, including those with the mini-arrows indicanting sortable column. If the style of the header class includes a "center" directive AND is sortable, IE fails to display that element centered. If the header is not sortable, IE does it properly.

    We suspect that it's related to the concatenation of style classes that Displaytag uses; the class id is rendered in HTML with serveral style keys, using spaces to separate them.

    Is this a known problem of IE or Displaytag? Does anybody know how make column headers appear centered in IE?

    Thanks a lot!!!
    Daniel B.

     
    • fabrizio giustina

      > Is this a known problem of IE or Displaytag?

      It's just a problem in your css. When a column is sortable you have a link inside it: check if you have a display:block definition on links (this will make the link as wide as the column, ignoring the text-align property)

       
      • adicrl

        adicrl - 2008-12-04

        thank you for the display:block tip, i have been looking for months for a solution to this problem. apparently not hard enough, since you posted in 2005 :D

         
    • Daniel Blazquez

      Daniel Blazquez - 2005-02-03

      Fabrizio,

      thanks for your help!. I've been looking around the CCS classes focusing my attention on "block" elements and playing with "text-aling" tag.

      I apolgize for not giving a more concrete solution, but we have get with "trial&error" aproach :)

      thanks again

       

Log in to post a comment.

MongoDB Logo MongoDB