Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Can't get image to right-justify

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #176070
    dust
    Participant

    Hi all

    Have got such a tiny little problem yet it’s driving me nuts!! :)

    Here’s the page:

    http://gazbrookfield.com/gigs.php

    All I’m trying to do is get the two little Facebook logos to right-justify and am finding it impossible. Here’s the code I’ve got so far:

    
    <tr>
    
    <td class="left">Thursday 24 July
    </td>
       <td class="right">
    
    Lusty Glaze, Newquay (supporting The Feeling)
          <a href="https://www.facebook.com/events/647590708645922"><img src="images/icons/facebook_gig.png" /></a>
       </td>
    </tr>
    
    and here's the CSS:
    
    .left   {
        width: 180px;
    }
    
    .right  {
        width: 360px;
    }
    
    .venue  {
        float: left;
        clear: none;
    }
    
    .fb {
        float: right;
        clear: none;
    }
    

    Can anyone help? :)

    #176071
    TheDutchCoder
    Participant

    On line 133 of main.css you have #main td p and it’s set to float left.
    If you remove that, your facebook images will float to the right ;-)

    #176072
    dust
    Participant

    I’ll give that a go, can anyone tell me why my code that I’m trying to paste in is getting all garbled up above? :(

    #176077
    dust
    Participant

    Solution worked a treat, thanks… :)

    #176080
    TheDutchCoder
    Participant

    No worries! ;-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.