Jump to content

Sizing image displayed


rdub

Recommended Posts

Using this code to display a thumbnail image. Would like to specify height and width so all are uniform but haven't come up with the additional code. Can anyone help?

 

("<img src='" . $fetched['thumb'] ."' /> ") .

Link to comment
Share on other sites

Not that easy so far. Sorry I didn't paste the entire code section. Maybe this will help.

 

  echo "<td width=378 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>".

("<img src='" . $fetched['thumb'] . "' /> ") .

 

I've tried adding the usual height and width.

Link to comment
Share on other sites

I can't think of any reason specifying the <img> height and width in the echo statement shouldn't work. What is echoed out to the browser in the HTML source of the page? There almost has to be a syntax error somewhere in the HTML output.

Link to comment
Share on other sites

This is a part of what is echoed (Thumb and text). I apologize if I am not answering your question.

 

  // put what you would like to display within each cell here

  "<tr>\n";

  echo "<td width=378 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>".

  ("<img src='" . $fetched['thumb'] . "' /> ") .

  "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>".

  "<br />".$fetched['Phone'].

 

[attachment deleted by admin]

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.