Solved

Align To The Right

Posted on 2014-12-08
6
72 Views
Last Modified: 2014-12-15
Hi,

My client wants me to align all of his prices to the right on his Menu page.

As you can see below, he has added each menu item on a new line, followed by the price.

ss
What is the best way to align the price over to the right, other than using a 2 column table?

I need to provide a solution that my client can use too, once i set it up for him and demonstrate it.

Thanks in advance for your help
0
Comment
Question by:oo7ml
  • 2
  • 2
  • 2
6 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 150 total points
ID: 40486916
This is what tables are for...display of data in a tabular format.
0
 
LVL 19

Assisted Solution

by:Montoya
Montoya earned 350 total points
ID: 40486939
like this?

<ul>
    <li>SharePoint <div class="price"> 20.00</div> </li>
    <li>CMS <div class="price">50.00</div> </li>
   
   
</ul>

***CSS****
li {

    color: blue;
   
}

.price {
float: right;
margin-right: 40%;
 
    color: red;
}
0
 

Author Comment

by:oo7ml
ID: 40486945
True, just through there would be a better way to achieve it considering it's only 2 columns.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:oo7ml
ID: 40486946
Thanks @Iammontoya
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40486948
oo7ml.. did that not work for you?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40486981
CSS solutions will also work fine but this is a case where you could use a table and no harm is done.  Just be careful when floating divs and test the result on both desktop and mobile.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now