Activity Stream
48,167 MEMBERS
61143 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9
  1.     
    #1
    Member

    Default Newbie question: how to align to right?

    Hello guys,

    Can someone of you can help me with a little issue?

    I added facebook and twitter in my header as you can see here:


    But I don't know how to add a space between the two images...
    I used <div align right, so I cant give a space...

    Any idea how to solve this?

    My current code:
    PHP Code: 
    <div align="right">
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/twitter.png" alt="picture of a pumpkin" align=right></a>
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/facebook.png" alt="picture of a pumpkin" align=right></a>
    </
    div
    Thanks
    Divvy Reviewed by Divvy on . Newbie question: how to align to right? Hello guys, Can someone of you can help me with a little issue? I added facebook and twitter in my header as you can see here: http://i.imgur.com/ZZ6GB.png But I don't know how to add a space between the two images... I used <div align right, so I cant give a space... Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    forumflare.com
    <div align="right">
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/twitter.png" alt="picture of a pumpkin" align=right></a>
    &nbsp;<a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/facebook.png" alt="picture of a pumpkin" align=right></a>
    </
    div>

  4.     
    #3
    Member
    Thank you for your reply Exel,

    I tried that before too, and didn't worked

    Anymore suggestions?

  5.     
    #4
    Member
    Website's:
    mafiaWarez.com phaze.co katzbb.com massddl.com buspic.com
    try this

    <div style="float:right;margin-left:5px;">
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/twitter.png" alt="picture of a pumpkin" ></a>
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/facebook.png" alt="picture of a pumpkin"></a>
    </
    div>


  6.     
    #5
    Member
    Um you have way too many aligns. Here's the quick fix.

    This works because your div is aligned to the right (that's the container for your pics).
    You just want a space between twitter and facebook so adjust the CSS margins.
    This code will put Twitter<5pixel space>Facebook

    Code: 
    <div align="right"> 
    <a href="#"><img style="margin:0 5px"  src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/twitter.png" alt="picture of a pumpkin" ></a>
    <a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/facebook.png" alt="picture of a pumpkin" ></a> 
    </div>

  7.     
    #6
    Respected Developer
    give your div an id and use padding.
    HTML:
    PHP Code: 
    <div id="social"
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/twitter.png" alt="picture of a pumpkin" /></a
    <
    a href="#"><img src="http://givingcancerthefinger.com/wp-content/plugins/social-sharing-toolkit/images/icons_medium/facebook.png" alt="picture of a pumpkin" /></a
    </
    div
    CSS:
    PHP Code: 
    #social img { padding: 0 4px;} 
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  8.     
    #7
    Member
    Website's:
    mjcoder.co.uk mjcoder.posterous.com
    dont do in-line styling on the actual div it just gets messy use the CSS file and do your styling in there

    margin/padding will solve your problem out. This needs to be applied on the img

  9.     
    #8
    Member
    Thank you guys :-)
    Is fixed now.

  10.     
    #9
    Member
    Website's:
    MovieZya.com
    What's the name of the site you are building this social share, maybe i can give you some ideas.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Newbie SEO Google ranking question
    By riship316 in forum Whitehat SEO
    Replies: 1
    Last Post: 17th Oct 2012, 02:02 PM
  2. Newbie question: best filehost for personal blogs?
    By budokan in forum File Host Discussion
    Replies: 9
    Last Post: 5th Aug 2012, 02:01 AM
  3. just a newbie question
    By wakaski in forum Webmaster Discussion
    Replies: 3
    Last Post: 31st Jan 2012, 04:32 AM
  4. Replies: 2
    Last Post: 29th Nov 2011, 02:45 AM
  5. How to center align ads..?
    By Hatefed in forum vBulletin
    Replies: 3
    Last Post: 9th Nov 2010, 03:13 PM

Tags for this Thread

BE SOCIAL