Closed Thread Icon

Preserved Topic: i hate form tags! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=20470" title="Pages that link to Preserved Topic: i hate form tags! (Page 1 of 1)" rel="nofollow" >Preserved Topic: i hate form tags! <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-01-2002 15:04

i have got a navigation bar for a site that is on the top of a page and fills the whole width.
the items are all images that are next to each other in that cell. only the last item should be a single input-text for keyword-searching followed by a "search" image.

but if i am using the form tag it makes two line breaks in my beautiful navigation bar. one before the form and one after it. can i work around this somehow? putting the whole bar into the form?

thanks!

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 08-01-2002 15:22

GRUMBLE: I'm sure I've had this problem. Try getting rid of any whitespace, wrapping it in a DIV and/or using display: inline.

If they don't work I'll have a dig around and see if I can find the code. Anychance of a link or the code to view?

___________________
Emps

FAQs: Emperor

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 08-01-2002 15:23

personally, I don't think it should do that, but why not put the <FORM></FORM> tags before and after the table?

are you sure that your not just including the newlines from the way you formatted your source?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-01-2002 15:43

Forms are block level elements. Try giving the form a CSS class and setting that class to display:inline.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-01-2002 15:46

ok, im sure there isnt a single whitespace anywhere.

and yes, im a bit more successful if i do the form around it, but then i have problems with image aligns... but i think i get that fixed.

thanks.

BUT: meanwhile i experienced a even bigger problem!
when i resize the browser-window in mozilla, then the images make a break when the window gets smaller. normally they are supposed to stay where they are and just are out of the window!

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-01-2002 16:15

Try white-space:nowrap;

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-01-2002 16:24
quote:
BUT: meanwhile i experienced a even bigger problem!
when i resize the browser-window in mozilla, then the images make a break when the window gets smaller. normally they are supposed to stay where they are and just are out of the window!



I've had the problem before. I am not sure how you are doing the nav bar, but are you using a background image to fill in the white space? If so, is it 1px wide?
If it isn't 1px wide, might want to change that. If so, then the images and form for searching may be the problem.

Hard to tell really without an example.

Later,
C:\


~Binary is best~

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-01-2002 18:03

where exactly do i set this
white-space:nowrap;
or
display:inline;

in the table? in the cell?

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-01-2002 18:07

Like petskull said, putting the <form> tags before and after whatever element the actual form is in will usually eliminate the problem.

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 08-01-2002 18:35

I had the same problem, and Petskull's and DL's Tip worked for me!

*runs naked before Grumble works it out*

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-01-2002 18:59

yes yes, the form problem is already gone, but what about the other one?

also, how can i place two tables next to each other. they also make a line break once i start a new table.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-01-2002 19:41

About the two tables beside each other:

Make an outline table that will hold the two tables with content. Let each additional table flow off of the TD tags.

<!--outline table-->
<table>
<tr>
<td>

<!--INSERT THE FIRST TABLE HERE-->
<table>
<tr>
<td>
<p>content</p>
</td>
</tr>
</table>

<!--Close the first TD tag-->
</td>
</tr>

<!--Start the second table-->
<tr>
<td>

<!--Start the table contents-->
<table>
<tr>
<td>
<p>Second table contents</p>
</td>
</tr>
</table>

<!--Close the outline table-->

</td>
</tr>
</table>

Later,
C:\


~Binary is best~

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-01-2002 19:54

the white-space:nowrap should go in the style sheet for the class or id of the element that you didn't want any wrapping in (probably the <div> or whatever it is that holds the images all in a line). the display:inline should go in the style sheet for the class or id of the form.

Putting two block level elements next to each other is difficult without resorting to tables for two reasons: one, CSS only provides one way of doing it that I know of, and it's not that flexible. Two, many browser bugs make the flexibility even worse. But the idea is to set both block level elements (the tables) to float:left; ... in practice though, this can sometimes take days of tweaking related markup and CSS to get right.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 08-02-2002 00:52

Elegant solution, Slime- Informative and well thought out in it's message.

I'd still using the double-celled table...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-02-2002 14:32

ok, all problems solved except for the mozilla one.

the element holding all images in one line is a TD so i put the white-space:nowrap in the class of that cell, but mozilla still breaks lines.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-02-2002 15:01

excuse me, im very sorry.

it DOES work!
i just was too confused in that table-wirr-warr that i put the class=nowrapper in the wrong table cell.

big thanks everyone, especially slime.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 08-03-2002 10:20

*round of applause*


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

« BackwardsOnwards »

Show Forum Drop Down Menu