Results 1 to 4 of 4

Thread: Need to align SPAN and DIV better

Threaded View

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Need to align SPAN and DIV better

    I use SPAN's to put up labels of text on my web page - like "Date Assessed" and "Discharged" and this problem one circled below - "Program".

    Normally these SPAN's are next to simple INPUT elements - look at the raw HTML here

    Code:
    <div class="acs-div-p">
        <label class="awc-Participant acs-edit-small-text acs-edit-important"></label>
        Id: <label class="awc-EntryKey acs-edit-small-text"></label>
        <br /><br />
        <span class="acs-span-large">Last Name</span>
        <input type="text" class="awc-LastName acs-edit-medium-text"/>
        <br />
        <span class="acs-span-large">First Name</span>
        <input type="text" class="awc-FirstName acs-edit-medium-text"/>
        <br />
        <span class="acs-span-large">Date Assessed</span>
        <input type="text" class="awc-DateAssessed acs-edit-medium-text acs-class-datepicker"/>
        <br />
        <span class="acs-span-large">Discharged</span>
        <input type="text" class="awc-DischargeDt acs-edit-medium-text acs-class-datepicker"/>
        <br />
        <textarea class="awc-DischargeNote acs-edit-small-text-box"></textarea>
        <br />
        <span class="acs-span-small">Program</span>
        <input type="text" class="awc-ProgramCd acs-edit-hidden-text"/>
    </div>
    The "Program" SPAN is next to a hidden INPUT element - which gets morphed into a jQuery Drop Down that I use - when the page loads and ajax builds itself.

    The Drop Down is in a DIV - of which I have no control over - the CSS styling for that DIV is part of the jQuery plugin I'm using. Notice that the DIV has a MARGIN on the bottom of "3".

    How can I get my "Program" text to align better with this DIV- do I need to put a MARGIN around it. I started messing with stuff like that and it was just causing the BLUE LINE that surrounds this whole area MOVE DOWN - not the desired result.

    I want the PROGRAM TEXT to move up!
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width