css problems

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

css problems

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

Post by cheatboy00 »

erg damn it
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

Post by cheatboy00 »

thanks, that works

oh, btw how do you get the green code thing going on when you post?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

Post by cheatboy00 »

thanks again
Post Reply