Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stretching Tables Problem

    Hi Guys,

    Im just looking for a bit of help with a layout that I am making in Dreamweaver. However when over a certain length of text is typed into my table area, other parts of the site also start stretching with it. Is there any way of having the cells of a table to be individual of others.

    If you go here - http://1414squadronatc.org.uk/NewSite/staff.htm you can see that the sublinks has stretched along with the rest of the page. However I would like it to remain the same size as it is on the other pages. Anyhelp would be appreciated.

    Alio

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,930
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    A table usually consists of rows and columns to display tabular data that is related to each other (e.g. sports results, stock exchange data, address/telephone lists, distance tables, etc.) so the cells in a row or column are always kinda connected to each other and not supposed to be individual, as you might agree with me...

    Using tables for layout became (bad) practice somewhere in the middle of the 90's and is a very outdated, yet unfortunately still widely used technique. You should, however, not rely on the design mode of those HTML editors and use current methods of website devlopment instead, the thinking behind which is basically to separate the structure/information of a website from the design/layout/visual appearance using semantic HTML code for the structure and CSS for the layout.

    Your site is basically a two column layout (left, narrow column with links, right, wide column for the content) so you should look into the tutorial Bon Rouge is providing. This way you learn something about how HTML is structured today and also about what can be done with CSS. I can tell you already, if done well, it's like a walk on clouds to add or remove content later on as the layout will adapt appropriately without breaking. CSS based layouts can be much more flexible than those rigid table structures.

    And last but not least you should use a document type declaration (Dreamweaver usually generates it automatically on creating a new document if set in the preferences) for proper display across different browsers.

    And if you need more basic explanations on HTML and CSS I can recommend http://htmldog.com.

    Hope that helps and Good Luck.
    Last edited by VIPStephan; 12-24-2006 at 11:36 PM.

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks alot for the links and everything ill take a look into all that. I did think CSS may be a better way but have never attempted it before so looks like ill have to give it a go

    Regards

    Alio


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •