Jump to content

Text Alignment problem - The text won't behave


Chezshire

Recommended Posts

I'm trying to get the text to align left starting at the top of the image and then run along side it as needed rather then having it starting on the same baseline with long lines of type running beneath the image. I'm uber new to all of this - thansk for any help or guidance!

 

Help?

<td valign="top" width="75">

	<?php

	$sql = "SELECT id, modelname, codename FROM cerebra ORDER BY modelname";
	$result = mysql_query($sql) or trigger_error(mysql_error,E_USER_ERROR);
	while($row = mysql_fetch_assoc($result)){
	//here's the key. Use a while loop to repeat through the code

	$thisID = $codename["id"];
	$modelName= getModelName($thisID);

	$modelName = getChar($char_ID);

	echo "<p class='fineprint'>";

	echo '<img src="/cerebra/images/'.$char_id.'.jpg" width="60" height="75" border=" 2px" bordercolor="#415582" ';	


	echo '<i> '.$row['modelname'];
	echo ' as <a href="/cerebra/display.php?id=$char_ID">'.$row['codename'].'</a>';
	echo '<hr color="#050F1D" size="2">';


	//these two lines (or any lines up to the closing brace) will be repeated for each row returned by the query
	}

	?>
	</td>

 

 

Hi,

 

im not sure on this but this might work,

 

<td valign="top" width="75">

	<?php

	$sql = "SELECT id, modelname, codename FROM cerebra ORDER BY modelname";
	$result = mysql_query($sql) or trigger_error(mysql_error,E_USER_ERROR);
	while($row = mysql_fetch_assoc($result)){
	//here's the key. Use a while loop to repeat through the code

	$thisID = $codename["id"];
	$modelName= getModelName($thisID);

	$modelName = getChar($char_ID);

	echo "<p class='fineprint' align="left">";

	echo '<img src="/cerebra/images/'.$char_id.'.jpg" align="right"width="60" height="75" border=" 2px" bordercolor="#415582" ';	


	echo '<i> '.$row['modelname'];
	echo ' as <a href="/cerebra/display.php?id=$char_ID">'.$row['codename'].'</a>';
	echo '<hr color="#050F1D" size="2">';


	//these two lines (or any lines up to the closing brace) will be repeated for each row returned by the query
	}

	?>
	</td>

 

Sorry but other than that i dont know, unless i see it on a page.

 

~Py

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.