Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Text not aligning in Div

Posted on 2013-06-22
2
Medium Priority
?
327 Views
Last Modified: 2013-06-22
I have a page where the text is in a div.  The text needs to be in the center with align left.
Here is the css.

.PO {
      width: 860px;
      height: 49px;
      margin: 50px 0px 25px 20px;
      font-size: 40px;
      font-weight: bold;
      font-family: Arial, Helvetica, sans-serif;
      background-image: url(Images/Page_Backgrounds/RestStripe.png);
      background-repeat:no-repeat;
}

This is the code.
<div id="PlaceOrder" class="PO" >Order From <?PHP echo $RestName ?></div>

Open in new window


This is the page.
www.menuhead.com/makeorder.php
0
Comment
Question by:DS928
[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 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 2000 total points
ID: 39268945
You mean you want to centralized with background?

see example:

.PO {
    background-image: url("Images/Page_Backgrounds/RestStripe.png");
    background-repeat: no-repeat;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 40px;
    font-weight: bold;
    height: 49px;
    margin: 50px 0 25px 20px;
    padding: 14px 0 0 10px;
    width: 860px;
}

Open in new window

0
 

Author Closing Comment

by:DS928
ID: 39268960
Thats it!  Thank you so much!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

610 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