Yuval200 Posted April 16, 2006 Share Posted April 16, 2006 I can't understand it right.There isn't much about different methods here (aither there is and im just partly blind).Any way, what is the different between each method? What method do I need to use in what cases?And another thing - How do I set borders, bgcolors ect to input things such as bottons and text fields? Via CSS? In what way if so? Link to comment Share on other sites More sharing options...
scott100 Posted April 16, 2006 Share Posted April 16, 2006 Get and Post are explained on this page under optional attributesTo style buttons, internal and inline: <head><style>input.mystyle{ color:green; background-color: yellow; border-style: dotted;}</style></head><body><input style="color:red;background-color: blue;border-style: dashed" type="button" value="button1" /><input class="mystyle" type="button" value="button2" /></body> Link to comment Share on other sites More sharing options...
Yuval200 Posted April 16, 2006 Author Share Posted April 16, 2006 Get and Post are explained on this page under optional attributesTo style buttons, internal and inline:<head><style>input.mystyle{ color:green; background-color: yellow; border-style: dotted;}</style></head><body><input style="color:red;background-color: blue;border-style: dashed" type="button" value="button1" /><input class="mystyle" type="button" value="button2" /></body> <{POST_SNAPBACK}> You helped me alot, thanks man .Another thing, I have this code:<html> <head> <title>SysIdx</title> <style> span.ver9p { font-family: verdana; font-size: 9pt; text-align: right; } table.connect { border-width: thin; border-color: black; border-style: solid; } input.userName { color: black; background-color: white; border-style: solid; width: 150px; height: 20px; } input.userPass { color: black; background-color: white; border-style: solid; width: 183px; height: 20px; } </style> </head> <body> <table class="connect" cellspacing="0" cellpadding="0" align="right"> <tr> <td width="300" height="100" valign="top" dir="rtl"> <span class="ver9p">התחברות לפאנל ניהול:</span><br /> <form name="conection"> <span class="ver9p">שם משתמש:</span> <input type="text" name="userName" class="userName" /><br /> <span class="ver9p">סיסמא:</span> <input type="password" name="userPass" class="userPass" /><br /> <span style="text-align:left"> <input type="submit" value="Submit" class="dataSubmit" /> </span> </form> </td> </tr> </table> <!-- <table style="border-width:thin; border-color:#000000; border-style:solid" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="brown" width="350" height="12">Test</td> </tr> </table> <blockquote> Text<br /> Text Text Text Text </blockquote> --> </body></html> [ignore the long comment with the code and the text, its not important, and if you see odd letters, ignore them to]I tried to delete the "dir" and set an "text-align", didn't worked, and then I tried to do "right: 0px" - nothing eather (sp?), same thing happened with the bottons. Why is it that way?(maybe some of it belongs to the CSS forum, but its about HTML abit cuz its about the bottons to, and I don't want to spam and open another topic).And in the same issuse, is there a way to equal the cell padding and spacing in CSS? Link to comment Share on other sites More sharing options...
scott100 Posted April 16, 2006 Share Posted April 16, 2006 And in the same issuse, is there a way to equal the cell padding and spacing in CSS?<{POST_SNAPBACK}> Try:padding:10px;margin:10px Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now