SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I align text inside a link to the left of the width of the link?

    As you can see in the picture, the text inside the contact link is aligned to the right, I want it to align to the left so there is no redundant space inside it, I tried with text align: left inside the div but it didn't work, any ideas?

    Thanks!

    img.png

  2. #2
    SitePoint Evangelist stonedeft's Avatar
    Join Date
    Aug 2009
    Posts
    589
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can we see the css and html code please
    Don't Panic

  3. #3
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    Solved it in the meantime. I had the list inside a div called "user11", so I made the links inside it display as inline and that allowed me to text align it, so if anyone finds it useful that's how I did it.

    Thanks for trying to help stonedeft.

  4. #4
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    Without code we're guessing wildly, but just from your debugger output you've got a nasty case of divitus going on there -- endless div for nothing given how simple the rendering is.


Bookmarks

Posting Permissions

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