How to Make Green/Red Textbox?

Anyone know how to make the green/red textboxes seen around many phpVMS websites?

Here’s an example at Virgin Atlantic Virtual:

http://virginatlanticva.co.uk/index.php/pages/ourpartners

Its the standard css class that vms uses,

example

<p id=“success”>Your text here</p>

<p id=“error”>Your text here</p>

I have created lots you can define them in your css.

1 Like

Cool, thanks!

Got it working with a bit of playing around in CSS. Thanks Mark.

ITROBB can you please post the full code with css code so others can also take advantage how it goes

thanks in advance

Asmara

Yeah I’ll do it later

[REMOVED]

ITROBB can you please post the full code with css code so others can also take advantage how it goes

thanks in advance

Asmara

Look in your css its not hard to reproduce.

hey it was looking hard for me itrob please copy paste the code here please?

Come on please, this is basic stuff.

what exactly do you need to know, if you give a paragraph the id of success you get a green box round your text if you give it a error you get a red box.

Just try it on your site somewhere,

<p id="success">This is a green box</p>

<p id="error">This is a red box</p>

hey mark i am not asking about this code i was having problem with CSS stuff how we can put the code in css file with different colors…?

#success {
background-color: #CCFF99;
border-style:dotted;
border-width:1px;
padding: 5px;
border-color: #009900;
text-align: left;
}

#error {
background-color: #FF9999;
border-style:dotted;
border-width:1px;
padding: 5px;
border-color: #FF0000;
text-align: left;
}

That’s mine.

Thanks All it worked for me now