Page 1 of 1

css problems

Posted: Sat Jun 29, 2002 10:40 am
by cheatboy00
erg well i'm probably the problem. havent used css in awhile so i'm rusty.. but i'm having trouble with making a border for my table row, the code looks like this:

<TR style="border: 3px solid #013310;">

if anyone knows whats wrong please help. and if theres nothign worng then its probably the host or my <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> computer

Posted: Sat Jun 29, 2002 5:25 pm
by volka
sorry, border is no style-element of <tr> and I found no simple way to border a single row in html. CSS 2.0 would provide pattern-matching to do so but what browser supports it?

Posted: Sat Jun 29, 2002 6:59 pm
by cheatboy00
erg damn it

Posted: Sat Jun 29, 2002 7:57 pm
by volka
but you can edit the single <td>s to do so.

Code: Select all

...
<style type="text/css">
   td.firstHighlight &#123;  border-top:3px; border-right:0px; border-bottom:3px ;border-left: 3px; &#125;
   tr.highlight td &#123;  border-top:3px; border-right:0px; border-bottom:3px ;border-left: 0px; &#125;
   td.lastHighlight &#123;  border-top:3px; border-right:3px; border-bottom:3px ;border-left: 0px; &#125;
</style></head><body>
<table><tr>....</tr>
<tr class="highlight>
   <td class="firstHighlight">...</td>
   <td>....</td>
   ...
   <td class="highlightLast">...</td>
</tr></table>
haven't tested this but something like that should work

Posted: Sat Jun 29, 2002 9:00 pm
by cheatboy00
thanks, that works

oh, btw how do you get the green code thing going on when you post?

Posted: Sat Jun 29, 2002 9:13 pm
by volka
above the 'edit-box' there are several buttons. They include BBCode (can't write them here ;) ).
There are also shortcuts available: alt+b|i|u|q|l|o|p|w
I used 'code', but there was (and hopefully will be *wink, jason*) a php-tag-button for php-syntax-highlighting

Posted: Sat Jun 29, 2002 9:28 pm
by cheatboy00
thanks again