SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Position text and image

    Hello People

    I need a little help about css, I can not set the position of a text and an image.
    Anyone know help me? I've tried everything and failed.

    Website:

    Code:
    https://dl.dropboxusercontent.com/u/3504390/link.txt
    I want this result:

    Code:
    https://dl.dropboxusercontent.com/u/3504390/image.png
    Thanks!

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New update. When i vote, the stars move, anyone know why?

    Thanks

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,788
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    The structure is a little awkward as you are targeting all spans within .info and so you have duplicate rules hitting the nested spans.

    It would have been better to use a class for the original rules to avoid such issues. (Note that you are not allowed to wrap block level elements in a span anyway and some of your spans would have been more semantic as block elements anyway.)

    You can try something like this but a little re-structuring would make it easier to filetr out unwanted rules.

    Code:
    .full-news .info .rating{margin-right:0}
    .num-votes{
    width:auto!important;
    margin-left:0!important;
    }
    .num-votes span{
    padding-left:0!important;
    margin-right:5px!important;
    }

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with you when you say "The structure is a little awkward". But, i can't do nothing. :|

    Thanks for the help


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
  •