473,406 Members | 2,312 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,406 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 1308

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.