The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Space between top of Avatar and Online button

    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Space between top of Avatar and Online button

    Post by runawayhorses Sat 28 Apr - 16:17

    I need to put a space between the top of the avatars in posts to separate the Online button from the Avatar. The top of the avatar is touching the bottom of the Online button. The online button 91 wide x 29 high and the avatars are max 150 wide, so there isn't enough room for both of them to fix directly side by side. If I could push the avatar down some then the Online button could fit on top of the avatar. So what I need is a code to place the online button on top of the avatar, or just a code to push the avatar down. It would be nice to center the Online button above the Avatar if you can write the code that way. Whatever you can come up with would be appreciated.

    thanks



    Last edited by runawayhorses on Sun 29 Apr - 20:27; edited 1 time in total
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Space between top of Avatar and Online button

    Post by LGforum Sat 28 Apr - 22:07

    Code:

    .postprofile dt img {
      margin-top: 10px;
    }

    This is based off the fact your profile says phpbb3
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Space between top of Avatar and Online button

    Post by runawayhorses Sun 29 Apr - 11:50

    Thank you, yes I'm using phpbb3.

    I used this code below yesterday and its working fine. Whats the difference in these codes, what does the dt img do in your code that this code doesn't do? Should I be using the code you posted instead? Like I said this code works and I noticed no problems with it yet. What advantages (if any) would I have in using the code you posted?

    Code:
    .postprofile {
        margin-top: 22px !important;
        }
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Space between top of Avatar and Online button

    Post by LGforum Sun 29 Apr - 14:46

    My code moves the avatar down a little, and your code pushes the whole post profile block a little.

    With your problems may occur when posts are very short and the main content of the post is less in height than the post profile. Also your code may have negative effects on the topic review and pm areas.

    So mine tackles the direct element you want to move. Up to you really, it doesn't make a difference if none of the problems above occur.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Space between top of Avatar and Online button

    Post by runawayhorses Sun 29 Apr - 17:05

    Ok thanks

      Current date/time is Wed 13 Nov - 17:48