Closed Thread
Results 1 to 8 of 8

Thread: Making My Fields Horizontal Instead of All Vertical

  1. #1
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Exclamation Making My Fields Horizontal Instead of All Vertical

    What I want is for 7 fields (Name-State) on the Left just how they are
    Then I want the remaining fields (Country- the spam question) on the right

    I would like to have it so it all fits on one page without having to scroll

    any ideas/suggestions?

    the .css file is below

    Code:
    /*
       ----------------------------------------------------------------
       GBCF-V3 BLUE STYLE SHEET - MIKE CHERIM 
       ----------------------------------------------------------------
       To use for testing, this stylesheet must be named default.css
    */
    
    /* === form div and elements ======================================= */
    
    #form-div { 
      font-family : verdana, helvetica, palatino sans, tahoma, arial, sans-serif;
      width : 70%;
      margin : auto;
      color : #FF8C00 ;
      line-height : 1.2em;
    }
    
    #form-div p.form-footer {
      margin : -35px 2px 20px 13px;
     }
    
    #form-div p.form-footer a { 
      color : #003366; 
    }
    
    #form-div p.form-footer a:hover, #form-div p.form-footer a:focus, #form-div p.form-footer a:active { 
      color : #000; 
      text-decoration : none; 
    }
    
    #form-div p.form-footer a:focus, #form-div p.form-footer a:active { 
      background-color : #eee; 
    }
    
    
    /* === form div link styles ======================================== */
    
    #form-div a { 
      color : #FF6600; 
    }
      
    #form-div a:hover, #form-div a:focus, #form-div a:active { 
      color : #000; 
      text-decoration : none; 
    }
    
    #form-div a:focus, #form-div a:active { 
      background-color : #eee; 
    }
    
    
    /* === success and error message/results box ======================= */
    
    #form-div p.success, #form-div p.error, #form-div p.center { 
      color : #fff;
      /* color : #000; (lite colors option - uncomment to use) */
      padding : 1px 4px; 
      border : 1px solid #000; 
      background-color : #003366;
      /* background-color : #bfccd9; (lite colors option - uncomment to use) */
      margin : 10px 3px;
      text-align : center;
    }
    
    #form-div p.error { 
      background-color : #bb0000; 
      /* background-color : #edbaba; (lite colors option - uncomment to use) */
    }
    
    #form-div p.error a, #form-div p.success a {
      color : #ffff7f;
    }
    
    #form-div p.center {
      text-align : center;
      background-color : #edbaba;
      color : #000;
      margin-top : -3px;
      padding : 0px 4px; 
    }
    
    #form-div p.error a:hover, #form-div p.error a:focus, #form-div p.error a:active, 
    #form-div p.success a:hover, #form-div p.success a:focus, #form-div p.success a:active {
      color : #eee;
      background-color : #bb0000; 
    }
    
    #form-div p.success a:hover, #form-div p.success a:focus, #form-div p.success a:active {
      background-color : #003366; 
    }
    
    
    /* === structural form elements ==================================== */
    
    form#gbcf-form { }
    
    fieldset.main-set,
    fieldset.req-set,
    fieldset.opt-set { 
      border : 1px solid #eee;
      padding : 5px;
    }
    
    
    /* === textural form elements ====================================== */
    
    #form-div legend { 
      font-weight : bold;
    }
    
    #form-div legend span { }
    
    legend.main-legend { 
      color : #777;
      font-size : 100%;
    }
    
    legend.req-legend,
    legend.opt-legend { 
      color : #777;
    font-size : 60%;
    }
    
    legend.main-legend span { }
    legend.main-legend { }
    
    legend.req-legend span { }
    legend.req-legend {
      margin-left : -2px;
    }
    
    legend.opt-legend span { }
    legend.opt-legend { 
      margin-left : -2px;
    }
    
    label.req-label, label.opt-label {
      color : #FF6600;
    font-size : 60%;
    }
    
    label.opt-label.check {
      float : right;
      padding : 0;
      margin : 1px 4px;
      cursor : pointer;
    }
    
    label.opt-label.main-label {
      margin : 0 2px;
      font-weight : bold;
      font-size : 75%; 
    }
    
    label.opt-label.main-label span {
      font-weight : normal;
      color : #FF6600;
    font-sze : 60%;
    }
    
    label.opt-label.main-label span.req, label span.req  {
      font-weight : bold;
      color : #c70000;
    }
    
    label.req-label.explain {
      color : #666;
      font-size : .8em;
    }
    
    label.req-label.explain:hover {
      color : #000;
    }
    
    /* === control and interface form elements ========================= */
    /*
      note: In this section you will see the hover/focus styles for the 
      inputs. For example: input:hover, input:focus. You will also see 
      these names applied as classes: input.hover, input,focus, for 
      example. This is not done by mistake. Those classes are needed for 
      the JavaScript focus script (files/focus.js) for IE 7 and older.
    */
    
    input.text-long.address, input.text-long.address:hover, input.text-long.address:focus,
    input.text-long.address.hover, input.text-long.address.focus {
      border-bottom : 0;
      margin-bottom : 0;
      padding-bottom : 2px;
      border-bottom : 1px dotted #bbb;
    }
    
    input.text-long.address2, input.text-long.address2:hover, input.text-long.address2:focus,
    input.text-long.address2.hover, input.text-long.address2.focus {
      border-top : 0;
      margin-top : 0;
      padding-top : 2px;
      border-top : 1px dotted #bbb;
    }
    
    input.checkbox {
      border : 1px solid #999;
      width : .9em;
      height :.9em;
      padding : 0;
      margin : 0;
      cursor : pointer;
    }
    
    input.checkbox:hover, input.checkbox.hover,
    input.checkbox:focus, input.checkbox.focus {
      border : 1px solid #666;
    }
    
    input.text-short, 
    input.text-med, 
    input.text-long,
    select.select,
    textarea.textarea {
      font : 0.6em verdana, helvetica, palatino sans, tahoma, arial, sans-serif;
      border : 1px solid #999;
      background-color : #fffffe;
      cursor : text;
      padding : 1px 2px;
    }
    
    select.select {
      padding : 1px 0;
    }
    
    input.text-short {
      width : 75px;
    }
    
    input.text-med, select.select {
      width : 150px;
    }
    
    input.text-long {
      width : 175px;
    }
    
    textarea.textarea {
      width : 220px;
      height : 100px;
    }
    
    select.select, select.select option {
      cursor : pointer;
    }
    
    input.text-short:focus, input.text-short.focus, 
    input.text-med:focus, input.text-med.focus,
    input.text-long:focus, input.text-long.focus,
    select.select:focus, input.select.focus,
    textarea.textarea:focus, textarea.textarea.focus {
      border : 1px solid #666;
      background-color : #ffe;
    }
    
    input.button { 
      font : 0.9em verdana, helvetica, palatino sans, tahoma, arial, sans-serif;
      font-weight : bold;
      margin-top : 8px;
      padding : 1px 10px;
      cursor : pointer;
      float : right;
      clear : both;
      color : #003366;
    }
    
    input.button:hover, input.button.hover,
    input.button:focus, input.button.focus {
      color : #333;
    }
    
    /* because IE6 sucks - if you have a conditionally served IE6 style sheet add this to it */
    * html input.button {
      border : 1px solid #666;
    }
    
    
    /* EOF - Created by Mike Cherim @ */

    thanks ahead of time!!!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: Making My Fields Horizontal Instead of All Vertical

    We kind of need your existing HTML to see how the CSS works with it.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Re: Making My Fields Horizontal Instead of All Vertical

    ok.
    it's here

    christiancouriernewspaper . com / blogbase / contactpage . php

    let me know

  5. #4
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: Making My Fields Horizontal Instead of All Vertical

    You're already using a table layout. Why not just move the extra items from the first column to the second column?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Re: Making My Fields Horizontal Instead of All Vertical

    Quote Originally Posted by WingedPanther View Post
    You're already using a table layout. Why not just move the extra items from the first column to the second column?
    OK-
    I got it all figured out how I want, now I need to know how to remove those goofy looking fieldset outlines under the SPAM question and the SUBMIT button...

    any ideas?

    thanks for all the help

  7. #6
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: Making My Fields Horizontal Instead of All Vertical

    Well, you may want to specify the browser you're viewing it in. IE and FireFox render it very differently. It looks like you have a CSS link in the body under your form instead of in the head. That may be part of the issue.

    Also, in blue.css, you have "font-sze" instead of "font-size" on line 159.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Re: Making My Fields Horizontal Instead of All Vertical

    Quote Originally Posted by WingedPanther View Post
    Well, you may want to specify the browser you're viewing it in. IE and FireFox render it very differently. It looks like you have a CSS link in the body under your form instead of in the head. That may be part of the issue.

    Also, in blue.css, you have "font-sze" instead of "font-size" on line 159.
    Im viewing it in FireFox.
    so the CSS link needs to be in the head??

    thank you for the help with line 159

  9. #8
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: Making My Fields Horizontal Instead of All Vertical

    CSS links are normally in the head. I'm not clear on what you're seeing that you don't like, so I was kind of guessing at things.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [wxWidgets]Horizontal scrolling
    By AdvMutant in forum C and C++
    Replies: 0
    Last Post: 12-15-2010, 05:39 AM
  2. Looking for Vertical Div Scroller...
    By Howdy_McGee in forum JavaScript and CSS
    Replies: 0
    Last Post: 05-31-2010, 05:14 PM
  3. Create vertical menu like www.tokonita.com
    By yonghan in forum JavaScript and CSS
    Replies: 5
    Last Post: 09-08-2009, 03:18 PM
  4. How could I make this code horizontal from vertical for statement
    By onat12agi@gmail.com in forum C and C++
    Replies: 2
    Last Post: 10-09-2008, 05:35 PM
  5. Horizontal Line in IE6
    By twalters84 in forum JavaScript and CSS
    Replies: 4
    Last Post: 05-02-2008, 09:27 AM

Tags for this Thread

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