65.9K
CodeProject is changing. Read more.
Home

Use sidebars to improve article readability

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Sep 20, 2010

CPOL
viewsIcon

18591

This tip shows how to use the new sidebar css classes to improve readability and add depth to an article.

Writing an article is often a balancing act between presenting the information you need to convey, and describing other interesting, but non-essential aspects of the topic. In the past when I have found myself in this situation, I have resorted to using html tables to achieve a sidebar. While this works, it is kludgy to set up. Recently member knockNrod submitted a suggestion for a new CodeProject sidebar css class. This now has been incorporated into the official CodeProject css stylesheet and is available using <div class="sidebar-right"> and <div class="sidebar-left">. I want to thank knockNrod for sharing this great idea. Have a favorite tip for writing CodeProject articles? Write a tip and share with everyone!