PDA

Click to See Complete Forum and Search --> : get rid of that white space


sebs
Jan 23rd, 2001, 09:40 AM
how can i get rid of the space a form makes,
i want to put table on top of each other, but
beacause they have form in each of them,
they are separated by space!

why and how to get rid of IT!

Jan 23rd, 2001, 10:46 AM
You could use a style, like this:


<FORM METHOD="POST" ACTION="whatever.asp" STYLE="{ margin-top: 0px; margin-bottom: 0px; }">


Paul

sebs
Jan 23rd, 2001, 11:13 AM
thanks a lot, it works great!!!!

sebs
Jan 23rd, 2001, 11:16 AM
guest what?

i does'nt work in netscape!!

what's new heu!!

Jan 23rd, 2001, 11:24 AM
That sucks.

You could also try:

STYLE="{ margin: 0px; }"

...a slightly different way of controlling the margins. It does it for all margins (I usually use the specific indicators and I have the good fortune to develop for an IE only intranet). Might be more NS friendly.

If that doesn't work you could also try:

STYLE="{ padding-top: 0px; padding-bottom: 0px; }"

or

STYLE="{ padding: 0px; }"

Maybe there's some difference between how IE and NS look at the form's margin/padding (doubt it, but ya never know). Beyond that I have no clue how to make NS happy.

Paul

sebs
Jan 23rd, 2001, 11:36 AM
nope again,
do you know what would make me an very happy person?

that every body get rid of netscape,
that is my dream!

it's always like that,it works perfectly in MSIE but
NN always gives me trouble, it's a pain in the ass!

Jan 23rd, 2001, 04:33 PM
I'm not sure about the space above and below, but you could put each complete form in a table cell - I use this method if I need to put two forms next to each other so it might work with the space above and below.

Incidentally, the reason that lots of things don't work too well in Netscape is because it sticks stringently to the guidelines for html set out by w3c. IE on the other hand is a little more relaxed and allows you to do much more (like exact positioning of html elements) - things which aren't strictly correct html.

Jan 29th, 2001, 05:30 AM
I've attached a web page that demonstrates using tables to exactly postition form elements...

(You'll need to remove the .txt extension!) :)

coox
Jan 29th, 2001, 06:54 AM
Honourable MatthewRalston-san (I feel like an oriental chap, using your full name all the time) - could you possibly explain how you'd use that as a template in a VB-IIS application, and how you'd get those four buttons in the one form to fire different code?

I'd be exTREMEly grateful to you... :)

Jan 29th, 2001, 09:09 AM
Have a look at the source code and you'll see how all the form fields are layed out in the tables...

If you want to have lots of different buttons that do the same thing but are all in the same form bunched together then you're going to have to use javascript events on them...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>...</title>
<script language="javascript" type="text/javascript">
function gohc() {
window.location=('http://www.haltoncollege.ac.uk')
}
function gocobwebz() {
window.location=('http://www.cobwebz.co.uk')
}
</script>
</head>
<body>
<form method="post" action="http://www.mralston.co.uk">
<input type="submit" value="MRHP">
<input type="button" value="Cobwebz" onclick="javascript:gocobwebz()">
<input type="button" value="Halton College" onclick="javascript:gohc()">
</form>
</body>
</html>

coox
Jan 29th, 2001, 10:37 AM
Matt, my dear chap. I fear you have failed to comprehend my question. That bit o' code you supplied previously - how could you make a VB-IIS app respond to each of the buttons in the 4-button table of that? All I can see from VB is one form (for that bit).

Jan 29th, 2001, 11:11 AM
One form yes, but some of the buttons on the form have javascript functions accociated with them which are executed when the button are pressed.