473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CSS code for flush borders of form objects

21
I am trying to display form fields with flush borders and eliminate the sunken effect. This works fine for text fields, but only partially for select boxes, or file inputs. IE6 and Firefox both display this problem but with different form objects.

Any help is greatly appreciated.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/transitional.dtd">
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. .flat
  6. {
  7. border: 1px solid #acacac;
  8. font-family: sans-serif;
  9. font: 11px Arial;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <form name="Test_form" method="post" action="" enctype="multipart/form-data">
  15. <input type="hidden" name="form_username" value="">
  16. <input type="hidden" name="source_document" value="Gestion des donnees d'adresse">
  17. <table class="main" width="650" align="center" id="quote_request" summary="quote_request">
  18. <tr>
  19. <td>Email</td>
  20. <td><input class="flat" type="text" name="email_address" id="email_address" value="" size="70" maxlength="70">
  21. </td>
  22. </tr>
  23. <tr>
  24. <td>Attach a data file</td>
  25. <td><input class="flat" type="file" name="mailmyform_file" size="70" maxlength="100" id="form_file"></td>
  26. </tr>
  27. <tr>
  28. <td>Required by</td>
  29. <td>
  30. <select class="flat" name="requiredby" id="requiredby">
  31. <option value="Monday">Monday</option>
  32. <option value="Wednesday">Wednesday</option>
  33. <option value="Friday">Friday</option>
  34. </select>
  35. </td>
  36. </tr>
  37. </table>
  38. <br>
  39. <table align="center" id="submit_reset" summary="submit_reset">
  40. <tr>
  41. <td align="center"><input type="reset" id="reset" value="Reset" onclick=""></td>
  42. <td align="center"><input type="submit" id="submit" value="Submit" onclick=""></td>
  43. </tr>
  44. </table>
  45. </form>
  46. </body>
  47. </html>
  48.  
Mar 18 '08 #1
0 1307

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Steven T. Hatton | last post by:
This is something I've been looking at because it is central to a currently broken part of the KDevelop new application wizard. I'm not complaining about it being broken, It's a CVS images. ...
1
by: Melissa | last post by:
A form in my database has multiple subforms. If any subform has no data, the borders of the subform still display on screen and also are printed if I print the main form. Reports are different. If...
1
by: Melissa | last post by:
Sorry if this becomes a repeat! I am having trouble with my newsreader and don't know if this got posted yeserday or not or if anyone responded. A form in my database has multiple subforms. If...
11
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
12
by: Daniel Kaplan | last post by:
I was curious about something. In the same table cell I can say this: <A HREF="menu.pl" ><IMG SRC="menu.jpg" width="95" height="35" border="0"></A> <A HREF="help.pl" ><IMG SRC="help.jpg"...
3
by: byteschreck | last post by:
Is it possible to change the distance from the form's border the form designer suggests when you use snaplines? I think it should be smaller.
17
by: Grant Kelly | last post by:
I'm wondering if it's possible within HTML markup (or possibly CSS) to specify that an HTML table's headers should be placed 'over' the cell borders rather than 'within' the cells. For example...
4
by: Arun Srinivasan | last post by:
I've been trying to tune this complex sql that uses the 'exists' clause. It is damn slow, even though the tables are not big and I have indexes on the columns in the sql. Currently I am trying...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.