BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 17-12-2005 20:42:46

relph2
New member
Registered: 12-12-2005
Posts: 2

Font

This is proably a stupid question.. but how do i change the size of the font?

Offline

 

#2 23-08-2006 15:56:16

Dumpduck
Member
Registered: 21-08-2006
Posts: 21

Re: Font

Bump.

This has never been answered, but im desperate to know to (also how to change the size of the characters/font inside, where you write the request)
And.. how do you change the font (to verdana for example, both outside name* email* request* and when you're writing)..

Last edited by Dumpduck (23-08-2006 16:42:13)

Offline

 

#3 23-08-2006 17:17:52

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Font

You just need to change the following code:

Code:

// CSS classes & styles
$classError = "error"; // class for error messages below input fields
$classTxt = "text"; // class for field caption cell
$classField = "field"; // class for input/textarea field cell
$classInputbutton = "inputButton"; // class for submit button
$classInputline = "inputLine"; // class for input lines
$classInputfield = "inputField"; // class for textareas

$styleInputline = "width:355px;"; // add. styles for input lines
$styleInputfield = "width:355px; height:100px;"; // add. styles for textareas
$styleInputbutton = "width:355px;"; // add. styles for submit button
$styleInputradio = "vertical-align:middle;"; // add. styles for radio input fields
$styleInputselect = "width:355px;";

Your CSS classes are denoted in the first 6 variables.  Your page CSS should included:

Code:

.error { CSS_for_errors; }
.text { CSS_for_text/titles; }

Then the text fields, text inputs, submit buttons, radio buttons, and select (pulldown) menus have their CSS below in the next 5 lines.  Just add your CSS divided with ";" (i.e. "text-align: left; color: #ffcc33;" etc.).

The CSS for the text is:

font-family: verdana, sans-serif; font-size: XXpx;

Last edited by sidtheduck (23-08-2006 17:24:13)


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#4 23-08-2006 18:04:18

Dumpduck
Member
Registered: 21-08-2006
Posts: 21

Re: Font

Can't get that to work.

Code:

// CSS classes & styles
$classError = "error"; // class for error messages below input fields
$classTxt = "text"; // class for field caption cell
$classField = "field"; // class for input/textarea field cell
$classInputbutton = "inputButton"; // class for submit button
$classInputline = "inputLine"; // class for input lines
$classInputfield = "inputField"; // class for textareas
.error { font-family: verdana, sans-serif; font-size: 9px; }
.text { font-family: verdana, sans-serif; font-size: 9px; }

This is not correct right? I've tried typing class .text, and putting them JUST after their variable. Didnt work, I get this error when theyre placed there:

Parse error: syntax error, unexpected '.' in /hsphere/local/home/dumpduck/dumpduck.com/contact_1.3.php on line 38


Due to it says because of the "." I tried removing it, replacing it with others, nothing will work. But its just where I placed the css I guess :/ sorry again for being difficult, but god, im a newb at all this programming codes..even html =] heh

Offline

 

#5 23-08-2006 18:59:48

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Font

CSS needs to go at the top of the page before the PHP output (typically between the <head></head> tags).  It needs to look like this:

Code:

<style type="text/css">
<!--
.error { font-family: verdana, sans-serif; font-size: 9px; }
.text { font-family: verdana, sans-serif; font-size: 9px; }
-->
</style>

If you are using the '/forum/contact_1.3.html' only for your contact form, just place the above code before the '<?' on line 1.  Or if you put it elsewhere in the script, place a '?>' before the CSS code and a '<?' after the CSS code.

If you are pasting the '/forum/contact_1.3.html' inside of another webpage, your CSS can still be added as stated above, but it would be more correct to include the CSS classes in between the <head></head> tags with all of your other CSS (IIRC you are including your CSS in the file 'header.html' on your site, Dumpduck.  Just add the two classes to that CSS if you want.)

That should work for you.

The reason you were getting a parse error is because you are placing CSS code INSIDE the <? ?> brackets which makes the server try to parse your CSS as PHP (which doesn't work).  You need to place the CSS OUTSIDE of the PHP parsing (either before the first '<?' or between '?>  <?'.

Last edited by sidtheduck (23-08-2006 19:09:06)


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#6 23-08-2006 19:35:27

Dumpduck
Member
Registered: 21-08-2006
Posts: 21

Re: Font

I added it to my header.html where all my current css is, and it works like a charm.

Again, great thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |