Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2384 Lượt xem

column Header of Integer type field is not aligned center but other Char type fields aligned correctly, my css file contains:

.center_class table > thead > tr > th {
text-align: center;
}

and in xml file : tree string="Patients" class="center_class"

all column Headers are centered correctly, (it means i have added css file correctly in manifest file) but an Integer type is still on right side. 

i am asking for column Header's alignment. 

please help.

regards

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try to put directly in the tag tree  , the class "text-center" is general used by bootstrap to align all columns in the center

Ảnh đại diện
Huỷ bỏ
Tác giả

thank you for reply. i am using bootstrap's text-align center to align the COLUMN VALUES where it needed, for COLUMN HEADERS i searched and found that for this purpose i have to use custom css and i tried the code mentioned in an Answered marked solution, but its working for other types of columns and NOT ONLY INTEGER type.
once again, my requirement is to ALIGN CENTER the COLUMN HEADER, it should work for INTEGER type column too.
regards

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 23
6936
2
thg 4 24
41
3
thg 8 25
2322
3
thg 7 25
2431
1
thg 5 25
2546