61 users online (1 members and 60 guests)  


  Results 1 to 3 of 3

Related

  1. How do I align Text in the same line?    Forum: HTML Forum
    Replies: 10
  2. IE 6 text-align center problem    Forum: HTML Forum
    Replies: 5
  3. text-align center problem - only in ie6    Forum: CSS Forum
    Replies: 4
  4. Fixing image to align bottom    Forum: CSS Forum
    Replies: 0
  1. #1
    rosalind110's Avatar
    New User

    Status
    Offline
    Join Date
    May 2008
    Posts
    1

    Align text with an image link?

    Can anyone tell me how to insert an image link to the right of, but on the same line, as some text?

    I want it to look something like this:


    Line of text is here. Space here. (Image link is over here)
    Last edited by rosalind110; 05-26-2008 at 01:06 PM. Reason: formatting was wrong

  2. #2
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: Align text with an image link?

    Hi rosalind110,
    Image are inline elements by default. Handcoding it as:
    Code:
    Text here &nbsp; <img src="image.jpg" alt="myimage">
    will result to what you wished.
    You could also use CSS's float:right or text-align:right for whatever you wanted to achieve, but without seeing your codes, things will be tough.

  3. #3
    Bigmous's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Dec 2008
    Location
    Sydney, Australia
    Posts
    27

    Re: Align text with an image link?

    do you want some text linking to a image appearing on a new page or same page?

    or do you want a simple image beside the text? if so, a simple .............&nbsp;<img src="sky.jpg" alt="sky" >
    Last edited by Bigmous; 01-20-2009 at 10:27 PM.



Tags for this Thread