SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with moving the image all the way right

    How can I move this image to appear on the right side of the container?
    It would take too many of these:  
    I'm sure there's a better way. Thanks

    Code:
    <div class="container6"><font size="3" color="#000000" face="Arial">Text</font><br><br>
    
    This is for your content. Click the Image to Continue</p><br>
    
    <a href="/next.php" onclick="takeAction(); return false;"><img src="/images/arrow.jpg" alt="" /></a> <br><br>
    
    </div>
    Css code:
    Code:
    .container6
    		        {
    	border:1px solid #E55B3C;
    	background:white;
    	padding:9px;
    	width:280px;
    	height:245px;
    	float:left;
    	margin:10px
    		}

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not use float:right to get it to the right side?
    Each day is a learning experience.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply.

    Where would that go?

    I tried several variations of this:

    Code:
     <img src="/images/arrow.jpg" alt="" float:right/>
    Thanks

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    float:right is CSS and if you want to put it inline with a single image, you could use something like this:
    Code:
     <img style="float:right;" src="/images/arrow.jpg" alt="" />
    If you will have several of the images that you want to float right, put the CSS in your style sheet.
    Each day is a learning experience.

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You should really float the anchor as that encloses the image . But yes the above poster is correct.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  6. #6
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is what I like about support forums. There is always lots of help, and fortunately there is someone that will catch my mistakes.

    I was so focused on the image that I failed to notice it was enclosed in an anchor. duh!
    Each day is a learning experience.


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
  •