Results 1 to 4 of 4

Thread: Problems converting table layout to div layout

  1. #1
    Join Date
    May 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problems converting table layout to div layout

    Hello, I am remaking pages with divs instead of tables, one works perfectly well www.bushcottages.com.au/tariff.html the other doesn't there is a big gap above the calendar and a big gap between the calendar and the rest, I don't know how to fix this; www.bushcottages.com.au/contact.html, I tried align:top but it doesn't make any difference; I found tables were much easier to manage! hope someone can help; regards, Claudine
    Last edited by Beverleyh; 05-28-2015 at 09:24 AM. Reason: formatting

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    It's probably something to do with line 56 in your HTML.

    Code:
    <div style="z-index:1000;margin:200px;height:auto;">

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Just a reminder to give your threads a meaningful title. "divs" is not descriptive enough and it is likely to be ignored.

    Your question - For starters, you have a div with margin: 200px which is going to create a distance of 200px around it on all sides;
    Code:
        <div style="z-index:1000;margin:200px;height:auto;">
       <input name="selDaycal1" type="hidden" id="selDaycal1" />
    Try taking that out - if you want to center the element, try margin: auto instead.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #4
    Join Date
    May 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have made margin-auto and it made the calendar jump to the top where I want it, then I did padding-left:200px and that made it go to the center, same for the next div; thanks a lot, it is fine now

Similar Threads

  1. Layout problems...
    By drcolt45 in forum CSS
    Replies: 1
    Last Post: 12-06-2013, 11:59 AM
  2. Replies: 1
    Last Post: 03-20-2013, 09:48 PM
  3. css layout problems in IE...again!
    By .webdesign in forum CSS
    Replies: 4
    Last Post: 03-14-2010, 08:24 AM
  4. Layout problems
    By sal in forum CSS
    Replies: 9
    Last Post: 01-28-2010, 04:40 PM
  5. Replies: 1
    Last Post: 06-23-2009, 11:15 PM

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
  •