473,289 Members | 1,829 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,289 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 1302

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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.