Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How do I horizontally center my design in Dreamweaver CS3?

I have layout for a website but I want the content horizontally centered as is done in this site.

http://www.redtinshack.com/

I usually design layouts and use absolute values for tables and pictures, which makes everything right aligned. How can I do this and keep everything centered?

Any advice would be appreciated.

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    The easiest way would to create a table of absolute size eg 800px wide in which you then layout your page and centre the table.

    The container table Table tag should look something like this:

    table width="800" border="0" align="center"

    set the 800 to what ever suits your design best.

    Problem is now that it will be aligned so the table is at the top of the page, if you want to veritically centre the table create another container table with one cell, width 100% height 100%, and the TD tag set as: align="center" valign="middle". You will need to set the encoding of the page to none by deleting the HTML tags "!DOCTYPE html PUBLIC" and "html xmlns=" before the HEAD tag so that it renders correctly in all browsers. Put your other table with the page design in it in this table.

    Alternatively use CSS but that is a bit more complex than the simple HTML table version above

  • Anonymous
    4 years ago

    stable information superhighway "layout" (not technical term, which advise you could desire to pass in deep with coding if u choose some improve suggestions) could desire to arise with some animation and interplay. via doing that, you have Dreamweaver CS3, Flash CS3 which common of the generated code is extra primary than previous version. To make a photo, Photoshop CS3 is the ultimate decision with a view to do an improve photograph exchange.

Still have questions? Get your answers by asking now.