Solved

Text not aligning in Div

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jquery add something to a div 4 43
Why is this panel heading creating extra space 2 50
Alignment is not working correctly. 8 38
Divi Them Help with Full Width header 20 65
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 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