Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Easiest way to convert from tables to CSS

This is a discussion on "Easiest way to convert from tables to CSS" within the Web Page Design section. This forum, and the thread "Easiest way to convert from tables to CSS are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 22nd, 2007, 05:30
New Member
Join Date: Feb 2007
Location: United States
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Easiest way to convert from tables to CSS

Hey there everyone. I am new to this forum and web design. My cousin has a site with quite a few pages. its www.usvendingking.com. I am going to be redesigning the page completely to make it look better than it is now and then later on optimize it for search engines.

I need to know some tips and maybe a good guide for converting a table based site to a CSS layout site. I have dreamweaver 8 and am learning how to use it. I know the very basics of HTML and CSS. basically I know what everything does in a general sense, just can't build a full website yet. He has quite a few pages on his site, so its going to take a while. I just need some shortcuts to make it a bit faster. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Feb 22nd, 2007, 06:16
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

Just start pouring over CSS and XHTML. There aren't that many CSS properties and even fewer HTML tags. If you study them a little bit and look at a few layout tutorials, you'll be able to start coding yourself. You need to hand code CSS, there is no program that will do it for you the right way, although they are improving. If you're on a Mac, CSSEdit is a nice program for writing CSS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 22nd, 2007, 06:20
New Member
Join Date: Feb 2007
Location: United States
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

Ah yes, I understand I cant just use an automated program to use CSS. I just need to figure out how to transfer the existing codes written with table layouts to CSS. In other words erasing all table code and placing in the css code. Should I place the content in a word document file along with the images that go with the content then create a css layout then re-insert content and images? Seeing if there are any shortcuts in that area. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 22nd, 2007, 08:45
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

The thing with CSS is it allows you to structure the XHTML semantically. Take my site for example... With CSS enabled, it looks like this: http://ryanfait.com/ but it looks like this with it disabled: http://ryanfait.com/?disable=CSS

The whole point of CSS is to structure the content in such a way where it makes sense, then use styles to make it look pretty. There's no transference between tables and semantic XHTML, you've just got to start from scratch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 22nd, 2007, 13:02
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

Using DW is fine (it saves time in the long run with all the nifty shortcuts) as long as you stick to the code view

As for converting that site to CSS layout ... start from scratch! Literally ... do a File > New

If you need help getting started with layouts, head on over to my stickied thread - Resources for learning how to use CSS for layout - there's a "how" section. Check the links and read
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 22nd, 2007, 13:51
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

I'm doing that right now with a site I built years ago. I am converting the entire site to css/xhtml. I am going page by page. DW8 allows you to use split view. Copy and paste the item you want into the new design. Then edit the code deleting all the tags, fonts, garbage that you'll have there. Then take that element and apply the New css to it.
There isn't a shortcut, it's just something you have to toil through. Line by line, page by page. Quite boring actually! But you'll be amazed at how much less code there is. I'm not extremely experienced but after a coupld of months or so of being in the trenches with this, I am definetly moving along well. Some of it is trial and error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 22nd, 2007, 14:49
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Easiest way to convert from tables to CSS

Sounds like you are over complicating the process. Just start over. Probably be faster.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 22nd, 2007, 17:14
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

in dreamweaver you can convert tables in to layes. Same thing i guess but its cheating. I never do it. Just learn css and xhtml, start over and you'll be alot better off.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Feb 22nd, 2007, 18:35
New Member
Join Date: Feb 2007
Location: United States
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

Alright, thanks everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Feb 24th, 2007, 02:59
New Member
Join Date: Feb 2007
Location: United States
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Re: Easiest way to convert from tables to CSS

Ok now I need to come up with a css layout that will work well for designer view in dream weaver. By that I mean a css layout where I can drag and drop text and images anywhere I want. I'm trying to do it with this basic css layout but there are some css properties maybe that are not letting me move objects where I want them. This is possible right?

This is what I figured out. I can select all on the home page, copy, and then paste it into microsoft word and it looks just like it does on the website. I am trying to figure out if I can copy and paste the content from microsoft word to dream weaver in designer view and then move it around the way I want it. This feels like the easiest way for me to get rolling. If I'm not being clear enough just let me know.

edit: The reason I need the css layout to be so flexible in dream weaver is so my cousin can add content when he needs to. Unfortunately he does not have time to learn css and HTML like me and he needs to be able to add images and content by him self and not just rely on me. I hope this makes sense. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Feb 26th, 2007, 05:37
New Member
Join Date: Feb 2007
Location: United States
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

I think I figured it out. In dreamweaver you can draw layers in designer mode which actually creates absolute div layers in the code. I can then alter the properties of tags etc to make it all fit right in different browsers.

I read about 5 articles on CSS/HTML so I am learning it a bit. So I'm pretty sure if I draw the layers out and apply the knowlede I gain from learning CSS/HTML I'll be able to pull this off.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Feb 26th, 2007, 17:09
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Easiest way to convert from tables to CSS

Another option would be to build it correctly then give him a copy of Contribute which will allow him to simply point, click, edit any portion of the pages.

Just from what I know the method you are taking is just asking for problems.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Feb 26th, 2007, 18:20
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

with a continuation off moojoo...
you can hand code your css to an external stylesheet and use strict xhtml/css (thats doing it the right way) and not using DW's WYSIWYG because it tends to only work in F'ed up versions of IE (6and below) and you tent to keep css syntax in your head for future refrences. But you know thats my opinion. You do what you like. if you have problems just pm or im me. Ill help you how ever i can. ;D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Feb 26th, 2007, 18:52
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easiest way to convert from tables to CSS

I've never had good luck with drawing layers in DW. If you have better luck than I ever did, that's great. They never seemed to stay where I wanted them. They were wiggly and moved...
But I get what you are saying about renaming the layer with a div name.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Feb 27th, 2007, 15:45
Reputable Member