Page 1 of 1

indent..please help me to put 4 spaces before every line

Posted: Mon Dec 19, 2005 8:53 pm
by btvngan
HawleyJR | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

 
Hello,

I don't know much about php but purchased a script.   I am trying to make my page looks a bit better.  I just want 4 spaces before every line in the middle column.  What do I need to put?  Here's the orginal middle column script without the indention.

Code: Select all

==============================================================

<!-- middle column - start -->
		
<td width=400 cellpadding=0 valign="top">

<p> <img src="images/icons/icon_index.gif" width="32" height="32" border=0 alt="index" align="absmiddle"> 
				<?php echo BENEFIT;?>.
			</p>

			<?php //include_once(IMAGE_MAP_NAME); // show image map ?>

			<br>

			<?php include_once("searchDefault.php"); // show default search tool/s ?>





			<br><br>
			<div style="font-size:10px;">
				<a href="search.php"> Advanced database search</a>
				<?php include_once( INSTALL_DIR . "search_top_ten.php");?>
			</div>
  
			
		</td>
		<!-- middle column - end -->	


==============================================================
Thanks !
btvngan

HawleyJR | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Mon Dec 19, 2005 10:41 pm
by shoebappa

Code: Select all

============================================================== 

<!-- middle column - start --> 
       
<td width=400 cellpadding=0 valign="top"> 

<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/icons/icon_index.gif" width="32" height="32" border=0 alt="index" align="absmiddle"> 
            <?php echo BENEFIT;?>. 
         </p> 

         <?php //include_once(IMAGE_MAP_NAME); // show image map ?> 

         <br> 

         <?php include_once("searchDefault.php"); // show default search tool/s ?> 





         <br><br> 
         <div style="font-size:10px;"> 
            <a href="search.php"> Advanced database search</a> 
            <?php include_once( INSTALL_DIR . "search_top_ten.php");?> 
         </div> 
  
          
      </td> 
      <!-- middle column - end -->    


==============================================================
&nbsp; stands for non-breaking space. If you're trying to be XHTML compliant you might use   but I don't know if it's required.

Unless the output you mean is included in the: search_top_ten.php, then you'd have to find where to put the spaces there.

Posted: Tue Dec 20, 2005 5:04 am
by Chris Corbyn
It would probably be far more sensible and effective to use CSS padding ;)

Thank you!

Posted: Tue Dec 20, 2005 11:24 am
by btvngan
Thank you all for your help. I tried both and modifying css seemed to work better. Again, thank you! :lol: :D :wink: