Results 1 to 6 of 6

Thread: [RESOLVED] Put DIV on same line as SPAN

  1. #1
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,421

    Resolved [RESOLVED] Put DIV on same line as SPAN

    I've attached an image that shows the web page and also the HTML from Firebug - goal is to get the DROP DOWN which is a DIV on the same line as the SPAN that says VACCINE.

    How can I do that?

    Until about 5 minutes ago the outer DIV with class .acs-div-p was a <P> element - I learned the hardway that <P> cannot contain <DIV> - but now I don't know how to get the DROP DOWN on the same line as the VACCINE prompt.

    Thanks in advance!!
    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

  2. #2
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    Re: Put DIV on same line as SPAN

    Set #awc-seqDropDown-0 or .acs-edit-dropdown to display: inline-block.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,421

    Re: Put DIV on same line as SPAN

    Thank you thank you thank you!!!

    I'm at the end of a 17 hour day!!!
    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

  4. #4
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    Re: [RESOLVED] Put DIV on same line as SPAN

    No probs...
    In theory you ought to be able to line the text up as well. Perhaps vertical-align: baseline, although you might need to put each line (each label/control group) into its own container for that to work.

  5. #5
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    Re: [RESOLVED] Put DIV on same line as SPAN


  6. #6
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,421

    Re: [RESOLVED] Put DIV on same line as SPAN

    Seems more complicated then that - that jalDropDown is a strange beast with lots of div's and such - not mine - I found it on the net...

    I am going to live with the mis-alignment for now...

    Maybe I could put the VACCINE element into a parent element (div?) and give that some padding and such - basically making the PROMPT/DROPDOWN look more like a PROMPT/TEXTBOX

    *** 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
  •