Computer problems,Computer help
*AX SOFT>>>Programming & Design

For people who know HTML?


What is the code thing for putting my text right next to my picture? Ten points for best answer.

Just like this:

http://i26.tinypic.com/f4r33k.jpg

<img src="yourpic.jpg" align="left"/> Your Text

use an invisible table. You can split it into columns so that the picture is on the right column and the text in the left column. Like this:

<table border="0">
<tr>
<td>
TEXT TEXT TEXT TEXT
</td>
<td>
<img src="PICTURE.jpg"/>
</td>
</tr>
</table>

You can change cellspacing and cellpadding to space the photo away from the text.

E.g. <table cellspacing="20px"> (instead of just table)

Note: If you use CSS like the answer below, it may not be compatible with all browsers.

You'll want to use the 'float' CSS attribute on the img tag. For example..

<p><img src="http://www.google.com/intl/en_ALL/i... style="float: right;" />some text
some text
some text
</p>

This will align the picture as far to the right as it can go, so you may need to adjust the size of the element that it's in in order to make it look right. :)

Hi it is very simple if you want to use a tabled structure then just make 2 <td> and put text in first td the image in second td

here is the code

<table>
<tr>
<td>Your text goes here</td>
<td><img src="path to your image" alt="Image title"/></td>
</tr>
</table>

The other method is Div base for XHtml. in this div you have to create 2 div. Give first dive float style left and the second div with style display inline. Put your text in first div and image in second div. Here is the div based code

<div style="float:left;">
Your text goes here
</div>
<div style="display:inline;">
<img src="path to your image" alt="Image title"/>
</div>


Hope this will help you...

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Using exponent in C++ Visual Basic 2005 Express Edition?

    // // Done in Visual C++ 2005Express Edition // #include <iostream> #include <math.h> void main() { double val = 0.0; val = 3.0 * pow(10.0, 8.0); std::cout <...

  • How do i create a simple "Suggest site to friend" page using php?

    mail(to,subject,message,headers,paramete... so in you case when you click on the send button it will send to a new page (suggestfriend.php) <html> <head><title></title&g...

  • What is the common formula to get the answer of the fibonacci sequence?or give me some example of fibonacci?

    alright, f(0)=0, f(1)=1, f(n+1)=f(n)+f(n-1) this means that you have to code the first two values as fixed, afterwards you just add the previous two values, for example 0->x 1->y while ...

  • C++..........................?

    AT www.esnips.com/

    ...
  • How to change color in Scrollbar in html css Coding pleaseee?

    You have to change the characteristics indivually. Put it in body CSS tags...these are the options you can change (you will need to put your own HEX in there in place of the zeros. By the way, not ...

  • To run a web search engine what I need: computer with algorithm which is working constantly or if somebody?

    you need web crawlers and a lot of disk space and bandwidth, you need to make your own database format and wordlists and then you need to decide which results should show up first in the search. O...

  • Which course I have to do to become a good web designer?

    That really depends on the place where you want to study, whether or not they teach you ALL that stuff. Remember, web design is as much art as it is programming. Before you ever write the HTML ...

  • In what programming languages are games like FIFA 2008, Call of Duty 4 created?

    Although I don't know exactly what languages are being used, here's some food for thought. The games you list are multi-platform (especially in the case of FIFA 2008). When a piece of...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster