I have this code:
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5; border: 3px solid #FED762;}">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>é¡šè·ºç“</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif"</td>
</tr>
<tr align="right">
<td colspan="2">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla bla</option>
<option value="18">bla bla</option>
<option value="4">bla bla</option>
</select>
</td>
</tr>
</table>
I would love to make the border only fo the TR with the select in it and not for the whole table.
how to do it?
Thanks a lot!is this for tabular data? this layout could be easily achieved with div's if not...!Hello wee,
You should, as Sam said, use DIV's and CSS to layout the page, because it looks like you're using tables for layout - an absolute never. If you need help, just ask, we'll be glad to help.
If you're writing in a different language, you should make sure your content-type charset corresponds; if you're only using a different language for part of the document, make sure you specify the language change in whatever block-level element you're putting the text into.
In any case, this should do what you want.
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5;">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>é¡šè·ºç“</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif"</td>
</tr>
<tr align="right" style="border: 3px solid #FED762;">
<td colspan="2">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla bla</option>
<option value="18">bla bla</option>
<option value="4">bla bla</option>
</select>
</td>
</tr>
</table>validate your code:
<!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m -->
do not use tabs, or anything else, between elements of a TAG, use spaces.
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5; border: 3px solid #FED762;">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>whatever</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif" alt=""></td>
</tr>
<tr align="right">
<td colspan="2" style="border: 5px dotted black;">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla_bla</option>
<option value="18">bla_bla</option>
<option value="4">bla_bla</option>
</select>
</td>
</tr>
</table>Originally posted by TimeBandit
do not use tabs, or anything else, between elements of a TAG, use spaces.
Do you have some terms wrong? I thought an element is a tag. You mean an attribute of an element?Originally posted by Jona
Do you have some terms wrong? I thought an element is a tag. You mean an attribute of an element?
i do have some terms wrong, i never bothered to learn them correctly. it'd be helpful when communicating if i used the right ones, eh?
thanksHey man, no problem, I probably have some terms wrong, myself. Took me a while to learn what block-level elements were and stuff. I'd suggest reading a bunch at <!-- w --><a class="postlink" href="http://www.w3.org">www.w3.org</a><!-- w --> - they'll clear up your terms, for sure!
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5; border: 3px solid #FED762;}">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>é¡šè·ºç“</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif"</td>
</tr>
<tr align="right">
<td colspan="2">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla bla</option>
<option value="18">bla bla</option>
<option value="4">bla bla</option>
</select>
</td>
</tr>
</table>
I would love to make the border only fo the TR with the select in it and not for the whole table.
how to do it?
Thanks a lot!is this for tabular data? this layout could be easily achieved with div's if not...!Hello wee,
You should, as Sam said, use DIV's and CSS to layout the page, because it looks like you're using tables for layout - an absolute never. If you need help, just ask, we'll be glad to help.
If you're writing in a different language, you should make sure your content-type charset corresponds; if you're only using a different language for part of the document, make sure you specify the language change in whatever block-level element you're putting the text into.
In any case, this should do what you want.
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5;">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>é¡šè·ºç“</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif"</td>
</tr>
<tr align="right" style="border: 3px solid #FED762;">
<td colspan="2">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla bla</option>
<option value="18">bla bla</option>
<option value="4">bla bla</option>
</select>
</td>
</tr>
</table>validate your code:
<!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m -->
do not use tabs, or anything else, between elements of a TAG, use spaces.
<table border="0" cellpadding="0" cellspacing="0" width="148" style="background-color: #fcffc5; border: 3px solid #FED762;">
<tr align="right" style="font-size: 12px; color: #1f439b;">
<td width="68" bgcolor="#FED762"><b>whatever</b></td>
<td width="80"><img width="1" src=http://www.webdeveloper.com/forum/archive/index.php/"imgs/pix.gif" alt=""></td>
</tr>
<tr align="right">
<td colspan="2" style="border: 5px dotted black;">
<select NAME="Field" dir="rtl" size="6" style="width: 200;" onchange="LoadPosition('search2');" multiple>
<option value="0" selected>All</option>
<option value="6">bla_bla</option>
<option value="18">bla_bla</option>
<option value="4">bla_bla</option>
</select>
</td>
</tr>
</table>Originally posted by TimeBandit
do not use tabs, or anything else, between elements of a TAG, use spaces.
Do you have some terms wrong? I thought an element is a tag. You mean an attribute of an element?Originally posted by Jona
Do you have some terms wrong? I thought an element is a tag. You mean an attribute of an element?
i do have some terms wrong, i never bothered to learn them correctly. it'd be helpful when communicating if i used the right ones, eh?
thanksHey man, no problem, I probably have some terms wrong, myself. Took me a while to learn what block-level elements were and stuff. I'd suggest reading a bunch at <!-- w --><a class="postlink" href="http://www.w3.org">www.w3.org</a><!-- w --> - they'll clear up your terms, for sure!