SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 17th, 2003, 10:29 AM
Quixotic Quixotic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 Quixotic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Input boxes, spacing and CSS help needed

Does anyone know if it's possible to position input boxes (in a form type tag) so that they sit one on top of the other but with no spacing between them at all. i.e. if there are 3 input boxes and the background colour is set to black they will be displayed as a solid black box in the browser.

The below appears to work in Mozilla but not opera or IE...

I have been testing using the following HTML script:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style>

.field
{
border:none;
font-size: 8pt;
border-top:none;
border-bottom:none;
border-left:none;
border-right:none;
margin-bottom:0;
margin-left:0;
margin-right:0;
margin-top:0;
padding-top:0;
padding-left:0;
padding-bottom:0;
padding-right:0;
border-collapse:collapse;
background: #000000 none;
color: Black;

}
</style>
</head>

<body>

<TABLE BORDER="0" cellspacing="0" cellpadding="0">
<TR><TD><form><INPUT SIZE="10" TYPE="text" class="field"></TD></TR>
<TR><TD><INPUT SIZE="10" TYPE="text" class="field"></TD></TR>
<TR><TD><INPUT SIZE="10" TYPE="text" class="field"></form></TD></TR>
</TABLE>
<br />
<form><p><INPUT SIZE="10" TYPE="text"></p>
<p><INPUT SIZE="10" TYPE="text"></p>
<p><INPUT SIZE="10" TYPE="text"></p></form>


</body>
</html>

Thanks for your help...

Reply With Quote
  #2  
Old September 17th, 2003, 11:59 AM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
Apparently IE has an "automatic" 1px margin. Try a browser detect and if you detect IE, set the top and bottom margins to -1px.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Input boxes, spacing and CSS help needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway