Solved

CSS HTML Aligning Multiple Controls on a Line

Posted on 2013-06-10
4
314 Views
Last Modified: 2013-06-10
How can you align a dropdownbox and label centered on a line and on the same line have a button align to the right?  Some browsers will align the dropdownbox as center and ignore the label while others will align both center.  Or it may be the button is pushing the label and dropdown to the left since it is on the same line.
0
Comment
Question by:ws11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39234767
can you please post a screenshot of what you want....
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 39234788
Two ways I can think of:
1) Create two adjacent DIVs, one with center alignment and one with right alignment, or
2) Create a table with two cells, one with center alignment and one with right alignment.
0
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39234798
0
 

Author Closing Comment

by:ws11
ID: 39234910
It will not work if both are on the same line since the button will naturally push the drop down over to the left.  I did use two divs though and let the button float right on the next line.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question