freshJet Posted May 7, 2011 Report Posted May 7, 2011 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 Quote
Moderators mark1million Posted May 7, 2011 Moderators Report Posted May 7, 2011 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 Quote
freshJet Posted May 7, 2011 Author Report Posted May 7, 2011 Got it working with a bit of playing around in CSS. Thanks Mark. Quote
FiveStar Posted May 7, 2011 Report Posted May 7, 2011 ITROBB can you please post the full code with css code so others can also take advantage how it goes thanks in advance Asmara Quote
James142 Posted May 7, 2011 Report Posted May 7, 2011 (edited) [REMOVED] Edited May 7, 2011 by James142 Quote
Moderators mark1million Posted May 7, 2011 Moderators Report Posted May 7, 2011 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. Quote
FiveStar Posted May 8, 2011 Report Posted May 8, 2011 hey it was looking hard for me itrob please copy paste the code here please? Quote
Moderators mark1million Posted May 8, 2011 Moderators Report Posted May 8, 2011 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> Quote
FiveStar Posted May 9, 2011 Report Posted May 9, 2011 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....? Quote
freshJet Posted May 9, 2011 Author Report Posted May 9, 2011 #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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.