How can I create custom HTML class in a webpart ?

xenosenderxenosender Member Posts: 8
edited 2009-02-12 in Dynamics AX
Hi everyone

I'm currently working on a webpart created with AX, and my problem is as follow :
This webpart contains a grid made of WebReal (their labels make the title row, the input the 2nd row)
I would like to change the background color and fonts of some of the colums.

It seems that the only way to do that is to create new HTML classes, and add the according css code in the css file used (AXER.css). My problem is that the HTML classes are given automatically ("gridheader" for each column of the first row of the grid, "gridnewinput" for the 2nd row).

Is there a way to choose the HTML class (I would like to create a new grid class, and write css code for "new_grid.gridheader" for example)? Or have I missed an other way to do that ?

Thanks !

PS : I already tried using the labelBold or labelItalic method, and it seems that the css sheet preempts these methods. Since I don't want to modify all the grids in my website, I decided to qo for a new HTML grid class...
Sign In or Register to comment.