Grow your CSS skills. Land your dream job.

[Solved] Contact form going out of div when float left

  • # July 29, 2009 at 10:35 am

    Hie
    I have a form and an image inside a div called form which is 960px wide, the form is width 50% inside another div which is 700px width. I have an image which i would like to come next to the form and I have placed it in its own div and floated both divs left so that they are next to each other.

    The problem is the form is floating left into the wrapper div instead of its own div which is 960px wide which is supposed to be centred.
    You can have a look http://creativeastro.com/MSHeating/contact.php

    I only have one error in the contact form page when I validated which I think has nothing to do with the problem.
    Line 20, Column 40: Attribute "allowTransparency" is not a valid attribute

    <iframe height="511" allowTransparency="true" frameborder="0" scrolling="no" sty

    I have validated the css and no errors are found.

    Thanks for your time. Hope you can help

    # July 29, 2009 at 10:46 am

    Here you go:

    Code:
    .form {
    margin:0 auto;
    width:960px;
    }
    # July 29, 2009 at 10:57 am

    Thanks a lot again, yes that worked.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".