Jump to content

styles and fonts in a script


russia5

Recommended Posts

I am trying to customize my amember login script.

[code]             
<?php
if ($au=$_SESSION['_amember_user']){ // user is logged-in
print "Hello $au[name_f] $au[name_l]!<br>";
print "<a href='/amember/logout.php'>Logout</a>";
} else { // user is not logged-in
print "<form method=post action='/amember/login.php'>
Username: <input type=text name=amember_login size=10><br>
Password: <input type=password name=amember_pass size=10><br>
<input type=submit value='Login'>
</form>";
}
?>
[/code]


When installed on my webpage, it takes on its own fonts and size that is different than the CSS of the rest of the text on the page.  The userid and password box's, also, have only the bottom and right side lines on them.  Does anyone know where I would go to adjust the fonts on the script or what calls the fonts.  I would think it would be on the HTML page that the login script is residing.  Thanks...








Link to comment
Share on other sites

The script is inserted into a .html page  What I believe you guys are saying, is that in order to adjust the font size and style of a php script that prints, is by adjusting the CSS for the page.  Right?  Is it possible for a PHP script to incorporate its own font and style formatting apart from the page CSS formatting?
Link to comment
Share on other sites

If the code executes before the CSS declarations, it will display unstyled. If the code executes after the CSS declarations, it will display using those styles applied assuming it's in a part of the html page for which you have declared a style.
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.