50% off All Oracle and Java Exams!

Making a New Year’s resolution to get Java certified? For this month only (expires 12/31/2019), Oracle is offering 50% off all digital training and exam vouchers. This means if you want to get Java (or any other Oracle certification), you can do it for half the price! Better yet, the vouchers are good for 6 months from date of purchase. Why wait till the prices go up?

Need help? Our new book for the Java 11 1Z0-815 exam just went on sale last month! Jeanne and I offer a wide variety of books for Java 8 certifications including the Java 8 OCA 1Z0-808 exam or the Java 8 OCP 1Z0-809 exam, or if you’re taking both we offer a Java 8 Certification Kit and a Practice Questions book.

The first step to getting certified is making the decision to get certified! Then, you purchase a study guide and draw up a study plan. For example, you could decide to read one chapter a week. Finally, you start taking practice exams to determine what topics you need to study more. And since the vouchers expire in 6 months, you have a nice incentive to not give up!

Win a Free Copy of Our New Java 11 OCP Book!

This week only, CodeRanch.com is hosting a book promotion for our new book: Java OCP 11 Programmer I Study Guide. The book will be released this month and is available for preorder on Amazon.com, Barnes and Nobles, and Wiley Publishing.

The giveaway starts today, November 19th, 2019 with the drawing on Friday, November 15, 2019.

The promotion will be held in the Programmer Certification (OCPJP) forum which can be found here: https://coderanch.com/f/24/

Simply post a question to the authors (Jeanne and Scott) in the forum to be entered for a chance to win a copy of our new book!

resizing columns in wordpress

Our OCP 11 (IZ0-815) book is at the printer. It comes out this month! In fact we are doing a CodeRanch promo for it next week. The book comes with an online test bank. The online bank includes two full length mock exams and every question in the book.

While uploading our questions to the test bank software, one of the test bank staff noticed an error. Two of our answer choices were the same. Luckily this wasn’t the correct answer, so a pretty minor errata. But it is our first errata so time to start the errata list.

For our Java 8 books, we used an HTML table for the errata list because our WordPress instance didn’t have table support. Editing the HTML was a pain so I was happy to see that now there are native WordPress tables. So I tried it out. Easy to enter data, add/remove rows/columns. Excellent. It’s all you could want in a table editor. Well. Almost.

Attempt #1

I chose the striped option. And this is what I got my default. I agree that the error column is the most important. And it’s nice that it is wide. But the other columns are so narrow to be unreadable.

Attempt #2

I looked at what my options were on the table. There was only one option that looked relevant. So I clicked it

Yuck; that’s even worse. The error column is the most important and it is so narrow it is hard to read. And there is lots of wasted whitespace.

Attempt #3

I got rid of the Type column to get a bit more real estate. Then I discovered there was a CSS option. I made up a unique CSS class name. Given that 815 is in the exam name, that sounds unique on our site.

I also went to the Additional CSS screen:

  • Settings
  • Appearance
  • Customize
  • Additional CSS

I added this CSS:

/* By default, wordpress only allows default or equals column size. Both look bad on the errata table so using CSS to customize */

/* page # */
.ocp-815-errata-table td:nth-child(1) {
  width: 10%;
  }

/* chapter #*/
.ocp-815-errata-table td:nth-child(2) {
  width: 10%;
}

/* actual errata */
.ocp-815-errata-table td:nth-child(3) {
  width: 50%;
 }

/* reporter */
.ocp-815-errata-table td:nth-child(4) {
  width: 15%;
 }

/* confirmed */
.ocp-815-errata-table td:nth-child(5) {
  width: 15%;
 }

Finally I published and got: