how to style a table like ones in the examples?
how to style a table like ones in the examples?
I tried to style a table like the tables in the example: http://www.datatables.net/release-datatables/examples/basic_init/table_sorting.html
or any other one, but with no luck! :(
it seems like I can get it to style header of the table like in the example - it doesn't show that black bottom border and it doesn't show the up/down arrows - the whole column name is clickable and functions like a sort btn.
Getting frustrated... please help.
the css styles that are included are:
[code]@import "media/css/demo_page.css"; @import "media/css/header.ccss";
@import "media/css/demo_table.css";[/code]
and all the paths are correct!
or any other one, but with no luck! :(
it seems like I can get it to style header of the table like in the example - it doesn't show that black bottom border and it doesn't show the up/down arrows - the whole column name is clickable and functions like a sort btn.
Getting frustrated... please help.
the css styles that are included are:
[code]@import "media/css/demo_page.css"; @import "media/css/header.ccss";
@import "media/css/demo_table.css";[/code]
and all the paths are correct!
This discussion has been closed.
Replies
Without seeing a live example, it'll be hard to say what's going wrong. For the arrows, it could simply be that your images are missing. For the black border, I don't know.
Did you happen to set bJQueryUI to true? That will have different CSS requirements.
However, I'd agree with Greg - check your server error log for 404 errors - likely its just a path issue.
@oversteer: The DataTables examples should all just work "out of the box". All the code required for the examples you see on on the examples page ( http://datatables.net/examples ) is included in the download package.
Allan
acctually I did just that :D and it names all the classes for the JQuery UI css template... (which explaines why it works with JQuery css) I did set it to false, and it works gr8 now.
I guess it was one of those stupid questions made by tired developer at the end of office hours, but Thanks a milion GregP!
P.S. for that .ccss file extension - I analysed the code right from datatables web site, and took it from there, I was desperate :)
Good to here you got it going! (Nice one Greg!)
Allan
Lucky guess regarding the jQuery UI! You gotta be lucky to be good?