Author |
Topic  |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 04 May 2001 : 14:42:30
|
The search box on my front page has a space under it that I can't figure out how to get rid of. Here's my code:
<table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr bgcolor="<%=strTableBorderColor %>"> <td> <table width="100%" cellpadding="4" cellspacing="0" bgcolor="<%=strCategoryCellColor%>" border="0"> <tr> <td> <form action="redirect_search.asp" method=get target="_blank"> <div align="center"> <input type="hidden" name="lpv" value="1"> <input type="hidden" name="loc" value="lycosinc"> <input type="text" name="query" size=30> <input type="hidden" name="num" value="30"> <select name="option"> <option value="lycos">The Web</option> <option value="insidewaco">InsideWaco</option> </select> <input src="search.gif" type="image" value="Search" name="image"> </div> </form> </td> </tr> </table> </td> </tr> </table>
<-- Eric --> 
http://insidewaco.com/forum |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 04 May 2001 : 17:08:50
|
you need to move the closing </form> tag so that it is after the </td> tag not before it, that will remove the blank line.
|
 |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 04 May 2001 : 18:04:39
|
Ok, now I have this:
<table width="100%" cellpadding="4" cellspacing="0" bgcolor="<%=strCategoryCellColor%>" border="0"> <form action="redirect_search.asp" method=get target="_blank"> <tr> <td> <div align="center"> <input type="hidden" name="lpv" value="1"> <input type="hidden" name="loc" value="lycosinc"> <input type="text" name="query" size=30> <input type="hidden" name="num" value="30"> <select name="option"> <option value="lycos">The Web</option> <option value="insidewaco">InsideWaco</option> </select> <input src="search.gif" type="image" value="Search" name="image"> </div> </td> </tr> </form> <tr> <td><div align="center"><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Powered by Lycos®</font></div> </td> </tr> </table>
The space I had under the form disappears, but now I'm getting errors when I run it through the w3 validator. quote: Line 635, column 63: <form action="redirect_search.asp" method=get target="_blank"> ^ Error: element "FORM" not allowed here; check which elements this element may be contained within (explanation...)
Line 636, column 5: <tr> ^ Error: element "TR" not allowed here; check which elements this element may be contained within (explanation...)
Another question I have is on my main page. I have all my little windows within a larger table that has a red background and a blue border. I have small 11x11 images to 'round' the corners. In netscape 6 there's a full line the color of the border that runs above the images. Here's the code I have for the images:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="<%=strTableBorderColor %>" align="left" valign="top"><img src="top_left_corner.gif" width="11" height="11" alt=""> </td> <td bgcolor="<%=strTableBorderColor %>" valign="top" align="center"> </td> <td bgcolor="<%=strTableBorderColor %>" align="right" valign="top"><img src="top_right_corner.gif" width="11" height="11" alt=""> </td> </tr>
I don't quite understand where that line is coming from, unless Netscape interprets the <valign="top"> differently than IE. Does it have a different property to set the valign?
<-- Eric --> 
http://insidewaco.com/forum
Edited by - e3stone on 04 May 2001 18:05:13 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 04 May 2001 : 18:28:35
|
actually, I said after the </TD> not the </TR> and leave the other tags as they were
Then you have to make a choice, do you go with the validator, or do you go with your nicely formatted form ?
|
 |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 04 May 2001 : 18:31:48
|
I tried placing it right after the </td> and it gave me the same error. Oh well, screw the validator.
<-- Eric --> 
http://insidewaco.com/forum |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 04 May 2001 : 18:45:04
|

|
 |
|
|
Topic  |
|