Advanced Search

Results 1 to 2 of 2

Thread: Using templates with pages that has different size contents

  1. #1
    Join Date
    Nov 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using templates with pages that has different size contents

    Hi Guys,

    I have created a template which is working really well, the only problem is some of my pages have a lot more content than others, meaning that the content is overflowing the Div that its going into. Any ideas on how I can get it so that the Div stretches with the content on each individual page?

    George

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    Don't make your templates too specific. If you have exactly the same size content each time, you can do that (like if you have a 100x200 image every time). But if you have varying content, your layout needs to scale properly. The easiest way to do this is to have a percentage based layout that can scale as needed. The other way is to make the height variable but the width set. This means you will have something like a newspaper article website. Each page has a set width and set things at the top, but then content in the main div can extend infinitely down until it is done. A lot of templates work like that.
    If you need specific help with a specific page, you need to show us an example (link, or if you can't link us, post the code).
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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