?
Solved

CSS HTML Aligning Multiple Controls on a Line

Posted on 2013-06-10
4
Medium Priority
?
315 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 1500 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

762 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