?
Solved

JSON DataTable Style/Formatting

Posted on 2014-08-08
8
Medium Priority
?
232 Views
Last Modified: 2014-08-08
I have a datatable that I am working on...been going on for a long time...but making progress.  Still trying to tune the query because it is obnoxiously long.  In the interim I would like the table to fit on the page but in-line styles are not getting it done.  Here is the page in question, (it could take a minute or two to load).  Some of the table is not displaying because, I assume, there is an "overflow:hidden"?  Nonetheless, can I exert some control over this utility?
0
Comment
Question by:Bob Schneider
  • 5
  • 3
8 Comments
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 40249665
For testing purposes, can you limit the output to the first 30?

select top 30 from....
0
 

Author Comment

by:Bob Schneider
ID: 40249683
Sure but the problem is it won't give us the 30 with the most points.  Here is a quicker one to load although it doesn't overflow the table as much.
0
 
LVL 54

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 2000 total points
ID: 40249809
Are you talking about the width?

 <table id="standings" class="display" cellspacing="0" style="width:800px;font-size: 0.8em;">

Open in new window


You can change the width to whatever you want.

800px http://jsbin.com/yaroka/3/edit and 600px http://jsbin.com/yaroka/2/edit
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Bob Schneider
ID: 40249833
Ok I'm not following.  It looks like I am accessing a remote style sheet, right?  How can I modify that?
0
 
LVL 54

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 2000 total points
ID: 40249906
You probably don't want to alter the built in style sheet. Create another style sheet.   Or see what happens when you try and remove it.
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 40249908
Here is a quick link to styling datatables.  https://www.datatables.net/manual/styling/ This is for do it yourself https://www.datatables.net/manual/styling/classes
0
 

Author Comment

by:Bob Schneider
ID: 40249910
Thanks!  Awesome as always!!
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 40249916
If you have something specific,  just post back here.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question