Solved

Text not aligning in Div

Posted on 2013-06-22
2
314 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to format numbers and letters in nested lists 5 45
Change static entered data to dynamic with counter 5 36
HTML question 2 27
boostsrap 1 13
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

730 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