Current location: Hot Scripts Forums » General Web Coding » CSS » Tables to Div conversion


Tables to Div conversion

Reply
  #1 (permalink)  
Old 05-04-07, 01:01 PM
swoopster swoopster is offline
New Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Tables to Div conversion

Does any know of a tool or script that can convert <table> to <div> cleanly?
I've done it in a rude way by doing a search and replace of <table> with <div> then removed all <td> entries then replace <tr> with <br>.

This seemed to get me close but if I have attributes such as cellspacing, I need to have this converted to the proper css attribute as well.

Any suggestions?

Thanks
__________________
Are you earning a percentage of eBay's Billion Dollar Revenue?
Read More http://www.myebayscript.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-04-07, 10:55 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
There is no "script" you will actually have to do the work....
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-07-07, 12:46 PM
swoopster swoopster is offline
New Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
That's not good news. A table to div conversion should be built into something like microsoft front page.

Well for my current project I guess I will have to manually convert my tables. Sounds like this would or could be a good tool to write for others who are wanting a simple and fast conversion.

Thanks
__________________
Are you earning a percentage of eBay's Billion Dollar Revenue?
Read More http://www.myebayscript.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-07-07, 12:49 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
it will never be simple

Besides, not all kinds of tables are bad. Tables for layout are bad. Tables to represent data are good. A program can not make the distinction between these two purposes.
__________________
Jack Bauer makes Chuck Norris cry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 05-07-07, 05:11 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Hard work pays off....

No pain no gain....

This is something you just gotta do (even though its really boring)...
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 05-18-07, 03:11 PM
Integer Integer is offline
New Member
 
Join Date: May 2007
Location: ~Palestain~
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
u can do it in dreamweaver
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 05-18-07, 11:50 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Really? Mind explaining?
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 05-20-07, 08:27 AM
staticfire's Avatar
staticfire staticfire is offline
Wannabe Coder
 
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 1 Time in 1 Post
I am against using programs such as Frontpage or Dreamweaver. People should code things themselves!!
__________________
Visit http://www.staticfire.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 05-23-07, 12:51 PM
_net's Avatar
_net _net is offline
Newbie Coder
 
Join Date: Apr 2007
Location: Local Disk C:
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Sites should definitly be not written in html tables, CSS is the way for templates.

And as for as tables, I'd say the only advantage they have over DIV is the cell alignments. They are pretty tight together while DIV's can float to places and be around.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Understand java script maverickminds JavaScript 1 07-16-06 02:23 PM
updating database tables when tables may or may not have changed? Tim Mousel PHP 0 05-21-06 06:25 PM
expanding a div to keep image contained pukington HTML/XHTML/XML 0 12-26-05 09:04 AM
REQUEST: Tutorial or prmg on mysql/php/related tables chippewapublishing Script Requests 0 08-05-05 02:50 PM
script that measures height of tables and vertically aligns nested tables amj01 Script Requests 1 07-04-03 02:20 PM


All times are GMT -5. The time now is 10:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.