943,661 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 1408
  • PHP RSS
Jan 25th, 2008
0

Form display settings

Expand Post »
Hey All,

I have a form that i want to be able to change the look of, it displays within an HTML page and is basically a rectangle with my input fields in it. I'm using a
PHP Syntax (Toggle Plain Text)
  1. <form action="fromform.php" method="post">
type form.

What i want is to be able to change the size of the forms border and type (i.e., thickness, sunken, etched etc...), and even color. Does anyone know where to find these settings and how to change them.?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster
rickarro is offline Offline
107 posts
since Jan 2008
Jan 25th, 2008
0

Re: Form display settings

You change these settings using CSS (Cascading Style Sheets).
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005
Jan 25th, 2008
0

Re: Form display settings

I don't believe i have one of those, is this something i create myself, and if so, do you have an example i could follow?
Reputation Points: 10
Solved Threads: 1
Junior Poster
rickarro is offline Offline
107 posts
since Jan 2008
Jan 25th, 2008
0

Re: Form display settings

You need to write style for that (using css ie.,) Check this out.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Jan 25th, 2008
0

Re: Form display settings

I'm not getting it to work. I guess i didn't explain correctly that i'm using a fieldset tag. From what i can find, i can manipulate what goes inside the fieldset, but not the border itself, is this still done with a css? I'm seeing that if the fieldset does not have a border, my browser doesn't support it, but thats all its saying about the border. I see a border but can't seem to find how to change its color or thickness.
Reputation Points: 10
Solved Threads: 1
Junior Poster
rickarro is offline Offline
107 posts
since Jan 2008
Jan 25th, 2008
0

Re: Form display settings

ok, i think i got it. I removed the fieldset tag all together and put my own table in. With this i was able to create a table border using a style sheet. This works for me, now I have more control.

thanks for steering me in the right direction.
Reputation Points: 10
Solved Threads: 1
Junior Poster
rickarro is offline Offline
107 posts
since Jan 2008
Jan 25th, 2008
0

Re: Form display settings

Click to Expand / Collapse  Quote originally posted by rickarro ...
I'm not getting it to work. I guess i didn't explain correctly that i'm using a fieldset tag. From what i can find, i can manipulate what goes inside the fieldset, but not the border itself, is this still done with a css? I'm seeing that if the fieldset does not have a border, my browser doesn't support it, but thats all its saying about the border. I see a border but can't seem to find how to change its color or thickness.
I was able to create a border and style a fieldset fine with Firefox. What browser are you using?

If there's a problem with compatibility with a fieldset, you can wrap all of the form elements inside of a div and make the fieldset invisible. Create a fieldset, fill that with a div, then fill that div with the form elements...
html Syntax (Toggle Plain Text)
  1. <form><fieldset>
  2. <div id="form-container">
  3. <input type="text" name="Blahblah" value="Testing" />
  4. </div>
  5. </fieldset></form>
You could then just style the div to get the border that you want.
css Syntax (Toggle Plain Text)
  1. #form-container {
  2. border: 5px solid black; }

- Walkere
Reputation Points: 29
Solved Threads: 5
Junior Poster in Training
Walkere is offline Offline
57 posts
since Jan 2008
Jan 28th, 2008
0

Re: Form display settings

Sorry this is late, i missed it on Friday. This may work for me, i'll try it. I was able to make everything work the way i did it, but it did look different depending on what browser i used. For testing purposes, i'm using IE and Firefox. In Firefox the border color is white, but in IE the color is what I set it at. I'll try your suggestion and see if this improves on it. Thank you.
Reputation Points: 10
Solved Threads: 1
Junior Poster
rickarro is offline Offline
107 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Simple Question about PHP
Next Thread in PHP Forum Timeline: regular expressions in php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC