We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Converting website from tables to CSS?

I'm reusing a website from a project setup a few years ago, before CSS was well supported, so most of the layouts and design are setup in tables designed in Dreamweaver 2004, I want to keep the design which is still clean and fresh, but setup as much as possible using CSS, I have Dreamweaver 8 and CS3.

Is there any easy way of converting the design to a CSS file, or would I be better of starting from scratch?

Comments

  • Duk
    Duk Posts: 117 Forumite
    Part of the Furniture 10 Posts Combo Breaker
    To be honest its quite difficult to "convert" as such. So you would have to start from scratch.

    I would suggest keeping note of your height, width of tables etc and just applying them to <div class="oldmaintable"> tag class

    .oldmaintable{
    width: n px;
    height: n px;
    }

    I will also mention that CSS is not yet fully supported (mostly but not fully) as a layout means and you may experienced some browser portability, If your website is working okay on tables I would personally leave it that way for at least another year.

    Hope this helps
  • converse
    converse Posts: 157 Forumite
    Part of the Furniture
    Thanks Duk, I'm just keen not to let it get left behind. The other main reason is I want to "convert" it into a template, so the menu structure is separate, so adding new pages becomes easy, rather than having to update the entire site when a new menu item is added.

    The design is very precise and only uses a handful of tables, but I know they are likely to get more complex and clumsy as new content is added.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.7K Banking & Borrowing
  • 253.4K Reduce Debt & Boost Income
  • 454K Spending & Discounts
  • 244.7K Work, Benefits & Business
  • 600.1K Mortgages, Homes & Bills
  • 177.3K Life & Family
  • 258.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.