Gossamer Forum
Home : Products : Gossamer Links : Discussions :

bg-color on forms in "add.html" ?

Quote Reply
bg-color on forms in "add.html" ?
I would like to change the background-color of the forms (like: "Category:" , "Description:" , etc.) in the "add.html"-template.
Where and how can I do this ?


Many thanks Crazy
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
Hi. It should be in include_form.html Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] bg-color on forms in "add.html" ? In reply to
Hi Andy,

I know this, but how can I set a different background-color for each of these fields ?
How can I do this ? Do I have to do this somewhere where I create a column ?

<%Description%>

how can I change the bg-color of this field ?
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
Erm ... edit the <td> tag.. so its something like;

<td bgcolor="#FF22FF">

Not sure how else to explain it Unsure

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] bg-color on forms in "add.html" ? In reply to
this unfortunately changes only the bg-color of the table-data, not the form-fiels itself......
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
Hi,

You should be able to just add something similar to this in the <input ..> fields;

style="background-color: #008000"

..so it looks something like;

<input type="text" name="test" size="20" style="background-color: #008000" <%if test%>value="<%test%>"<%endif%>>

Hope that helps.

Cheer

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Post deleted by erichcyber In reply to
Quote Reply
Re: [Andy] bg-color on forms in "add.html" ? In reply to
Hi Andy,

where are these "input-fields" ?


in the Link-Table-Editor ?
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
include_form.html.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] bg-color on forms in "add.html" ? In reply to
Andy,

this works fine within this code:

<tr>
<td align="right" valign="top"><%body_font%>Titel in englisch:</td>
<td>
<input name="Multilang_english_Title" style="background-color: #FFCC00" value="<%if Multilang_english_Title%><%Multilang_english_Title%>

<%endif%>" size="50">
</td>

</tr>


but how does it work here ?


<tr>
<td align="right" valign="top">
<%body_font%>Category:</font>
</td>
<td>

<%Category%>
</td>

</tr>
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
Ah.. thats not so easy :(

Your best bet, is to add a <style> tag in your design. Something like;


Code:
<style>
select {
background-color: #666699;
 color: #ffffff;
}
input {
background-color: #666699;
 color: #ffffff;
}
select {
background-color: #666699;
 color: #ffffff;
}
</style>

This needs to go just above the <body> tag in your header file.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] bg-color on forms in "add.html" ? In reply to
Andy,

I do not want to give all fields the same color.
Each field should have a different color.


Do you have an idea ?
Quote Reply
Re: [erichcyber] bg-color on forms in "add.html" ? In reply to
Put all your styling in css global which is there and then for the different fields, <td> etc use the class="xyzxy". Would keep any change of colors at a later date be applicable to all pages where that has been included and make it manageable.

If coloring is within <td> tag then you could also use class="<%if ...%>name1<%elseif ...%>name2<%elseif .....>....<%else%> ... <%endif%>" within the <td .....> or <input type ... class= "<%if %> ....<%elseif...%>...<%endif%>" also.

HyTC

Last edited by:

HyperTherm: Aug 24, 2004, 11:53 PM
Quote Reply
Re: [HyperTherm] bg-color on forms in "add.html" ? In reply to
the Gossamer-staff wrote a "global" for me (I´m using the Multi-Language-Plugin) based on using css-style.
Now this works perfect !


Many thanks for your help !



Erich Smile