This topic is locked
[SOLVED]

 Css trick to center all grid data - any help

11/20/2014 3:48:20 PM
ASPRunnerPro General questions
mperry622 author
.rnr-gridfieldlabel {

text-align: center !important;

white-space:nowrap;

}
.rnr-toprow {

text-align: center !important;

white-space:nowrap;

}


I am using this to center all my grid headers but was hoping there was an easy way to set all grid data to centered?
much thanks...

acaruson 11/21/2014


.rnr-gridfieldlabel {

text-align: center !important;

white-space:nowrap;

}
.rnr-toprow {

text-align: center !important;

white-space:nowrap;

}


I am using this to center all my grid headers but was hoping there was an easy way to set all grid data to centered?
much thanks...


You could add the CSS above to the style sheet files...so they are included in all new projects by default.

mperry622 author 11/21/2014



You could add the CSS above to the style sheet files...so they are included in all new projects by default.


Good idea, Any idea which one i can use to center all grid data by default>? I copied those from one of your older posts, nice idea.

mperry622 author 11/21/2014



Good idea, Any idea which one i can use to center all grid data by default>? I copied those from one of your older posts, nice idea.


I solved my own problem.

/*Begin field alignment style*/



.rnr-field-text {text-align:center;}

.rnr-field-checkbox{text-align:center;}

.rnr-field-number {text-align:right;}

.rnr-field-audio {text-align:left;}

/*End field alignment style*/


found in css and changed.. cheers and happy Friday all!