how to align elements on same line?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manu1001
    New Member
    • Jul 2007
    • 14

    how to align elements on same line?

    the trouble is the elements are defined in different places in the html file. something like this.
    Code:
    <input id="a"...... />
    
    <input id="b"...... />
    <input id="c"...... />
    
    <input id="d"...... />
    how do i get "a" and "d" to appear on the same line (horizontally aligned) without removing "b" and "c" between them?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what do you want to do with b & c meanwhile?

    Comment

    • manu1001
      New Member
      • Jul 2007
      • 14

      #3
      they need to appear below "d".

      and for some lengthy reason, i don't want to move the html tags around. isn't there something in css to get it done?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        not something I’d recommend.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          #a, #d { float:left }

          Comment

          Working...