Grow your CSS skills. Land your dream job.

The Simple Contact form

  • # March 7, 2009 at 1:04 pm

    I downloaded it, it works. However, Safari isn’t displaying it correctly.

    FireFox 3 and IE 7 are, but not Safari…I know weird.

    Here’s the link to the site: http://www.thecreativedrift.com


    Here’s the HTML:

    Code:

    Contact Us




    And the CSS: (I commented before the Form’s CSS so you).

    Code:
    @charset “UTF-8″;
    /* CSS Document */

    /* Eric Meyer’s Reset Reloaded */
    /* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    }
    body {
    line-height: 1;
    }
    ol, ul {
    list-style: none;
    }
    blockquote, q {
    quotes: none;
    }
    /* remember to define focus styles! */
    :focus {
    outline: 0;
    }
    /* remember to highlight inserts somehow! */
    ins {
    text-decoration: none;
    }
    del {
    text-decoration: line-through;
    }
    /* tables still need ‘cellspacing=”0″‘ in the markup */
    table {
    border-collapse: collapse;
    border-spacing: 0;
    }

    html { background-color: #333;/*background: url(../assets/background.jpg)*/;}

    body {text-align: center; font-family: Helvetica, Arial, sans-serif; font-size: 100%;}

    a {text-decoration: none; color:#ececec; }
    a:hover {text-decoration: underline; }
    a.selected { font-weight: bold; }

    p { color:#ececec; line-height: 21px; font-size: 12px; }
    h2 { color: #ececec; font-size: 30px; }

    #wrap { margin: auto; width: 900px; text-align: left; position: relative; margin-top: 10px; }

    #header { position: relative; background: url(../assets/headbanner.png) no-repeat; height: 140px; }
    #header h1 { text-indent: -9999px; background: url(../assets/headlogo.png) no-repeat; margin-left: 30px; width: 301px; height: 113px; }
    #header h1 a { display: block; outline: none; width: 301px; height: 113px; }
    #header small { color:#ececec; position: absolute; font-size: 16px; font-variant: small-caps; letter-spacing: .1em; top: 2.3em; left: 240px; text-indent: -9999px; }

    #menu { background: url(../assets/menubg.png) no-repeat; overflow: hidden; height: 50px; margin: 0 0 6px 0;
    padding: 0 0 0 31px; margin: 10px 0 0 0; }
    #menu li { float: left; line-height: 50px; }
    #menu li a { border-right: 1px dotted #ececec; padding: 0 1em; color: #ececec; }
    #menu li a.first { padding-left: 0; }

    #banner { height: 200px; background: url(../assets/banner.jpg) no-repeat 0 0;
    position: relative; margin-top: 10px; padding: 10px 0 0 0;}
    #banner h1 { margin: 14px 0 0 287px; background: url(../assets/welcome.png) no-repeat;
    text-indent: -9999px; width: 120px; height: 31px;}
    .about { margin: 14px 0 0 287px; background: url(../assets/about.png) no-repeat; text-indent: -9999px; width: 116px; height: 31px;}
    .how { margin: 14px 0 0 287px; background: url(../assets/how.png) no-repeat; text-indent: -9999px; width: 187px; height: 28px;}
    .work { margin: 14px 0 0 287px; background: url(../assets/work.png) no-repeat; text-indent: -9999px; width: 78px; height: 26px; }

    #banner p {margin-right: 10px; margin-left: 307px; margin-top: .8em; font-size: 14px; }

    #main { position: relative; width: 900px; padding-bottom: 4em; }

    #secondary { background: url(../assets/sub-menu.jpg) no-repeat; width: 250px; height: 688px;
    float: left; padding-top: 2em; }
    #secondary ul { padding: 0 0 0 48px; margin: 6px 0 0 0;}
    #secondary li { font-weight: bold; border-bottom: 1px dashed #343434; padding: 15px 0 11px 0;
    margin-right: 30px;}

    #primary { position: relative; float: right; background: #e6e6e6; height: 720px; width: 650px; }
    #primary h2 { margin: 40px 0 0 40px; color: #374b6e; border-bottom: 2px dotted #aab391;}
    #primary h3 { margin: 25px 10px 0 60px; color: #333;}
    #primary p { margin: 15px 10px 0 60px; color: #333;}
    #primary ul {list-style: decimal;}
    #primary ul li { margin: 15px 10px 0 60px; color: #333; font-size: 12px; }
    .bolder {font-size: 1.1em;}

    /********** BEGIN CONTACT FORM **********/

    form {
    margin-top: 30px;
    width: 650px;
    }

    #primary input, #primary textarea {
    padding: 5px;
    width: 300px;
    font-family: Helvetica, sans-serif;
    font-size: 1.2em;
    margin: 0px 0px 10px 0px;
    border: 2px solid #ccc;

    }

    #primary textarea {
    height: 250px;

    }

    #primary textarea:focus, #primary input:focus {
    border: 2px solid #374b6e;
    }

    #primary input.submit-button {
    width: 100px;
    float: left;
    margin-left: 125px;

    }

    label {
    float: left;
    text-align: right;
    margin-right: 15px;
    margin-left: 10px;
    width: 100px;
    padding-top: 5px;
    font-size: 1.2em;

    }

    /********** END CONTACT FORM **********/

    #footer { text-align: center; clear: both; }
    #footer p { font-variant: small-caps; color: #ececec; margin: 0; padding: 10px 0 0 0; font-size: 10px;font-variant: small-caps; color: #ececec; font-size: 10px;}
    .first { margin-left: -10px;}
    #footer .last {border-right: none;}
    #footer li { display: inline; }
    #footer li a { border-right: 1px dotted #ececec; padding: 0 1em; color: #ececec; font-size: 10px;}

    Any help is much appreciated. Thank you!

    -Grey

    # March 7, 2009 at 1:17 pm

    try adding a <br /> after the inputs

    but I would change the CSS for the textarea to this:

    Code:
    #primary textarea {
    height: 250px;
    padding: 5px;
    width: 300px;
    font-family: Helvetica, sans-serif;
    font-size: 1.2em;
    margin: -10px 0px 10px 0px;
    border: 2px solid #ccc;

    }

    # March 7, 2009 at 3:08 pm

    Ah! I knew I had forgotten something. Ikthius to the rescue once again.

    Thank man, I really appreciate your help. I owe you!

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".