SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Using a form in a sliced table
-
Jan 7, 2004, 15:47 #1
- Join Date
- Sep 2003
- Location
- Wales
- Posts
- 1,181
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Using a form in a sliced table
Hi all,
My Problem:
I have created a header section of a webpage that I have sliced up in photoshop and have re-assembled in HTML (Dreamweaver). Within the header section (within one of the slices) I need to put an input box (search box). Obviously, I need to use a form when using an input box, but when I input the <form> tag within the HTML it messes the slices up and makes the header image look completely wrong. But, when I input the <input type="text"...> tag without using the <form> tag everything looks fine.
Does anyone know why when using the <form> tag in a sliced image assembled with HTML it distorts it??
Tryst
-
Jan 7, 2004, 15:53 #2
Just use this in your form:
HTML Code:<form style="display: inline;" action="/blah/" method="post"> <!--form stuff here--> </form>
-
Jan 7, 2004, 17:06 #3
- Join Date
- Sep 2003
- Location
- Wales
- Posts
- 1,181
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ahhh, excellent!!
Just a quick question about quality design :-)
What is the best to insert the <form> tag with a table? Is the following way...
<form id="prod_search" style="display: inline;" action="search.php" method="post">
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="templates/images/header_01.gif" WIDTH=251 HEIGHT=35 ALT=""></TD>
<TD COLSPAN=3 background="templates/images/header_02.gif" WIDTH=494 HEIGHT=35 align="right">
<font size="2" color="#FFFFFF">Product Search: </font><input type="text" name="search" size="20" maxlength="30" /></TD>
<TD background="templates/images/header_03.gif" WIDTH=55 HEIGHT=35>
</TD>
</TR>
<TR>
<TD>
<IMG SRC="templates/images/header_04.gif" WIDTH=251 HEIGHT=41 ALT=""></TD>
<TD>
<IMG SRC="templates/images/header_05.gif" WIDTH=307 HEIGHT=41 ALT=""></TD>
</TABLE>
</form>
-
Jan 7, 2004, 17:07 #4
- Join Date
- Sep 2003
- Location
- Wales
- Posts
- 1,181
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sorry about that, it seemed to have posted before I finished. Anyway, is it best to put the <form> tags outside of the table, or is best to build the form within the table?
Cheers
Tryst
-
Jan 7, 2004, 20:39 #5
Originally Posted by Tryst
Bookmarks