473,791 Members | 3,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to remove unwanted space after </form> using css?

Hello group,

I am producing a form within a table:

<table>
<tr>
<td>
<form>
...
</form>
</td>
</tr>
</table>

I found that there is an unwanted vertical space right after the </form>
tag.

Can I fix this using css?

Thank you
Magnus
Jul 12 '07 #1
4 4452
rf

"Magnus Warker" <wa****@magnus. cowrote in message
news:f7******** **@online.de...
Hello group,

I am producing a form within a table:

<table>
<tr>
<td>
<form>
...
</form>
</td>
</tr>
</table>

I found that there is an unwanted vertical space right after the </form>
tag.
You mean the form element has a margin-bottom which looks, to you, like some
vertical space somewhere.
Can I fix this using css?
Yes. You need to go over to the specifications at
http://www.w3.org/TR/CSS21/ and read up on the margin properties, as applied
to block level elements. Perusing the visual formatting model chapter would
help as well, so you know exactly why the CSS you will use does what it
does.

--
Richard.
Jul 12 '07 #2
Jukka K. Korpela wrote...
But I wonder why the OP asked a manifestly CSS
question in an HTML group. Asking in a wrong group typically results justin
flames, except that it often spawns wrong answers as well. (Our nice little
group is exceptional in the sense that we tend to be kind to newbies as long
as they misbehave just by ignorance.)
Pardon me for interrupting, but I've stumbled in here looking for
assistance in teaching myself XHTML/CSS web design. From your
remarks it seems that this may not be an appropriate newsgroup.

My news server, however, does not report any groups with XHTML in
the name. There appear to be two groups focusing on CSS, but since
I can read neither Croatian nor Japanese, they're not likely to be
much help. I could go to <shudderGoogl e groups, but...

Any suggestions welcome.

--
Mark Barratt, angoltanár budapesten
http://www.geocities.com/nyelvmark
Jul 18 '07 #3
Gazing into my crystal ball I observed Mark Barratt <ny*******@yaho o.com>
writing in news:MP******** *************** *@news.t-online.hu:
My news server, however, does not report any groups with XHTML in
the name. There appear to be two groups focusing on CSS, but since
I can read neither Croatian nor Japanese, they're not likely to be
much help. I could go to <shudderGoogl e groups, but...

Any suggestions welcome.
You probably won't find newsgroups with XHTML in the name - just HTML.
This group is for discussing HTML - and there is
comp.inforsyste ms.www.authoring.stylesheets for CSS, and alt.html also
discusses both HTML and CSS and other subjects relavant to both.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 18 '07 #4
Mark Barratt wrote:
>
groups focusing on CSS
comp.infosystem s.www.authoring.stylesheets

--
Berg
Jul 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4010
by: vishal | last post by:
hello friends i have one php script which generates html page containing form. what i want is submit this form using php script. pls give me some idea that how can i submit form using php code. it is possible to submit form using javascript or vbscript but i am not allowed to use javascript or vbscript in my project. so how can i do it using php code??
4
10676
by: btopenworld | last post by:
I am submitting a form using an image as the link to a js file. The image calls a js function which checks fields- issuing alerts for errors - if no errors it then submits the form. I would like to have a final confirm box run from the function before the form is submitted. I guess I would have to use the return statement somehow but I can't see quite how. Any help gratefully accepted John
3
5697
by: Justin Sane | last post by:
I haven't been able to select a form using getElementById. I only can select a form using the "name" property of the <form> tag. Is there another way to select a form, or is it even possible to use getElementById to select a particular form? -- Thanks, Justin. http://www.opera.com/mail/
4
2544
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form element (part of object/feature/bug detection). 2) There's a <form> element defined in the <body>, with the id 'theForm'. 3) The onload function tries to access that form, and also counts the total number of forms in the document. It fails to...
9
2053
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/src/search.html> I have a simple form, using the following code provided by my site search provider: <form method="get" action="http://search.atomz.com/search/"> <input size="20" name="sp-q"><br> <input type="submit" value="Search"> <input type="hidden" name="sp-a" value="sp06251400"> <input type="hidden" name="sp-p" value="any"> <input type="hidden" name="sp-f" value="ISO-8859-1"> </form>
4
12233
by: Rainer Queck | last post by:
Hi NG, in a dynamically created tabpage I have a checkbox, which with its "Checked" is bound (DataBindings.Add) to a bool property of one of my classes. I realized, that the bool property of my class only gets updated if the checkbox looses the focus. Is there a way to forward the "Checked" to my class in the moment the user clicks on the cbox, with out going the detour of the click-Event?
1
17554
by: Zorik | last post by:
I am building a form in asp.net 2.0 On one of the textboxes, I don't want that the user will use the space character. How do I disallow space using regular expression validator (or other validator) ? Thanks ra294
3
3384
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt, &gt ,&ltCompany&gt to display '<', '>' and '<Company>' respectively. But is there any freeware code available which could implement the above functionality without having to use &gt,&lt and such stuff???
5
13871
by: shotokan99 | last post by:
for instance i do have this element but i dont have a <form>: <input type="Text" name="myname" id="myname" size="30"...> then i have this link: echo'<a href="mypage.php?name='.$myname.'...>Save</a>'; i want that $myname will the value of myname textbox. something like this: $myname= <the value of the textbox>
3
4501
by: sunmat | last post by:
To find number of character without space using java Example: String = prabu sun No. of char =8 plz send me code
0
9517
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10428
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9997
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.