I'm not familiar with what a DataPager control entails. However, if it functions as a pagination tool and you aim to achieve a design similar to the navigation on the StackOverflow New Questions page, then yes, it can be accomplished using CSS.
Typically, page numbers are represented as hyperlinks. To customize their appearance, determine the class used for these links within the pagination control and apply your desired styling. For example, if the HTML structure resembles this:
<div class="pagination">
<span class="page_cur">1</span>
<a href="news.php?page=2" class="page_num">2</a>
<a href="news.php?page=3" class="page_num">3</a>
<a href="news.php?page=4" class="page_num">4</a>
<a href="news.php?page=5" class="page_num">5</a>
...
</div>
You can define styles in your CSS like so:
<style>
div.pagination > span.page_cur, div.pagination > a.page_num {
display: block;
float: left;
padding: 4px;
}
div.pagination > span.page_cur {
background-color: #ddd;
border: 1px solid #ddd;
}
div.pagination > a.page_num {
background-color: #fff;
border: 1px solid #e0e0e0;
}
</style>
If you're unsure about which CSS selectors to use for styling the pagination numbers, refer to online resources on CSS selectors. The Firebug plugin for Firefox can also aid in identifying layout elements and their current styles.
*It seems that StackOverflow dislikes URLs containing underscores:
Pagination