Jump to content

Line Break


gsencan

Recommended Posts

echo '<div class="gamename">'.$values[0].'</div>';

echo  '<div class="gameimage"><a href="'.$values[3].'"><img src="'.$values[1].'"></a></div>';

 

NOW i want 2nd echo under 1st echo. I tried every single <br> combination but no luck  :shrug:

 

Also my 2nd question is: my image and link is a variable, it displays the image but there is something wrong with link.

Variable is just like this  www.mydomain.com\image\blabla.php

but it shows link as==> www.mydomain.com\    instead of what i wrote above.

Link to comment
Share on other sites

slashes for links should be forward slashes and not back slashes.

 

echo '<br />'; 

 

will insert a line break, but since you're using css, you may not see it. type in that code, execute it then go check the page's source code to see if the break is there. or put it inside one of the divs, before your link:

echo  '<div class="gameimage"><br /><a href="'.$values[3].'"><img src="'.$values[1].'"></a></div>';

 

hope this helps

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.