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>

 

 

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.