jpflana
Posts: 13
|
Posted: 11/29/2007, 9:05 AM |
|
I love the Export to Excel example but I needed to add a simple black border around the cells in my spreadsheet because the usual grid didn't appear in the exported file. I found a few tips on the forum but I thought I would put them together with a full example below. Here are the changes I made to my HTML document to get the borders. I added a style block and then removed all of the "<link href"s that brought in my stylesheets.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Webpage Title</title>
<meta http-equiv="Content-Language" content="en-us">
<meta content="Webpage descriptive terms" name="Description">
<meta content="webpage,keywords" name="Keywords">
<style>
table,th{border-style:solid;border-color:#000000;border-width:1}
,tr{border-style:solid;border-color:#000000;border-width:1}
,td{border-style:solid;border-color:#000000;border-width:1}
</style>
</head>
<body>
Hope this saves someone some time.
Jeremy F
|
|
|
cazzani
Posts: 11
|
Posted: 12/03/2007, 2:16 PM |
|
Very nice tip. Thank you for sharing it.
Stefano - Milan, Italy
|
|
|
mljonzs
Posts: 124
|
Posted: 06/11/2008, 12:36 PM |
|
Total life saver! Thank you for this tip. I've spent all morning trying to do this same thing - wish I would have thought to check here sooner! :)
M Jones
_________________
What does not begin WITH God, will end in failure!
|
|
|
|