Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts

    Centering left aligned text

    If you got to this site and look at each partner name and description you can see the issue.

    What is the best way to take that text, center it in the div and have it "text-align:left"?

    I have tried everything but i really don't see an easy or hard way of making it work. I only have 200px to work with.

    Any help would be very appreciative. Thanks.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,747
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello jcdevelopment,
    I think text is either aligned left or centered... but not both.


    If you want the text left aligned but not on the left edge of it's holder, narrow up .listing_address_partner and .partner_details. The problems seems that "only 200px" is too much.

    Try changing padding: 5px 0; on both those classes to padding: 5px 0 0 20px;
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    Well, i almost need to center a div with:

    margin:0 auto;

    Then have the text left justify.

    The only issue is that the text varies from length to length and i would have to manually move each text properly. It is also dynamic content. The admin allows them to upload more partners.

  • #4
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Every lady wants to be a fashion girl with the fashion. I like Tiffany jewelry.,which let me crazy when.I bought many products from Tiffany jewelry on sale. I hope I have many beautiful Cheap Tiffany jewelry ;.Just be yourself! I know a Tiffany jewelry saleoutlet stores, a reliable store, offer you many Tiffany and co. For example, Tiffany Rings , Tiffany Watches and so on. When pusue fashion, don’t forget to do some shopping to buy tiffany jewelry to become more and more popular, a good quality tiffany jewelry is necessary. You could find many beautiful tiffany jewelry in the reliable tiffany jewelry on sale .


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •