Need help with PHP

NightCrawler

Diamond Member
Oct 15, 2003
3,179
0
0
I've been Googling looking for TAGS that PHP uses and can't seem to find a cheat sheet for it.

I did find this — which adds a line but I was looking for how to add a space between two words and came up with nothing.

I want to line up a bumch links horizontally and want some space between them?
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Just use this... this is stupid, it wont let me put it in there... remove the space after the ampersand.


& nbsp;
 

NightCrawler

Diamond Member
Oct 15, 2003
3,179
0
0
Originally posted by: Modeps
Just use this... this is stupid, it wont let me put it in there... remove the space after the ampersand.


& nbsp;

Doesn't work in attached code mode either, odd I thought that was unformatted text.

 

Firus

Senior member
Nov 16, 2001
525
0
0
those are HTML tags PHP doesn't really use "tags" you just echo or print html code that does use tags. Why not just put all text between html tags so that you at least have well-formed html and you can do spaces without all the nbsp junk? so like <span>here is some text</span> and any spaces will show. Or is this not an HTML page?
 

NightCrawler

Diamond Member
Oct 15, 2003
3,179
0
0
Originally posted by: Firus
those are HTML tags PHP doesn't really use "tags" you just echo or print html code that does use tags. Why not just put all text between html tags so that you at least have well-formed html and you can do spaces without all the nbsp junk? so like <span>here is some text</span> and any spaces will show. Or is this not an HTML page?

This;

<a href="<?php echo get_settings('siteurl'); ?>/login.php"><Font color =#ffffff><?php _e('Login'); ?></a>
<a href="<?php echo get_settings('siteurl'); ?>/register.php"><Font color =#ffffff><?php _e('Register'); ?></a>

It kept placing the Login and Register to close together, couldn't remember & nbsp.