/    Sign up×
Community /Pin to ProfileBookmark

Question about borders…

I have this code:

[code=php]
<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=”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>
[/code]

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!

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@SamApr 10.2004 — is this for tabular data? this layout could be easily achieved with div's if not...
Copy linkTweet thisAlerts:
@JonaApr 10.2004 — [font=arial]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.[/font]

[font=monospace]

<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="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>

[/font]
Copy linkTweet thisAlerts:
@TimeBanditApr 10.2004 — validate your code:

http://validator.w3.org/

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="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>
Copy linkTweet thisAlerts:
@JonaApr 10.2004 — [i]Originally posted by TimeBandit [/i]

[B]do not use tabs, or anything else, between elements of a TAG, use spaces.[/B][/QUOTE]


[font=arial]Do you have some terms wrong? I thought an element [b]is[/b] a tag. ? You mean an attribute of an element?[/font]
Copy linkTweet thisAlerts:
@TimeBanditApr 10.2004 — [i]Originally posted by Jona [/i]

[B][font=arial]Do you have some terms wrong? I thought an element [b]is[/b] a tag. ? You mean an attribute of an element?[/font] [/B][/QUOTE]


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? ?

thanks
Copy linkTweet thisAlerts:
@JonaApr 10.2004 — [font=arial]Hey 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 www.w3.org - they'll clear up your terms, for sure! ? [/font]
×

Success!

Help @weee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...