Man owns his entire existence to the stateGeorg Wilhelm Friedrich Hegel
Relates to Web Standards and CSS Design
Just noting a couple of useful CSS2 selectors (Standards UAs) and another IE hack to fix rendering:
input:hover,label:hover+input,label:hover+br+input {…}
ins[datetime]:before {
content:'Update: ';
font-weight:bold;
}
ins[datetime]:after {
content: ' [' attr(datetime) ']';
font-style:italic;
}
ins[datetime] {
text-decoration:none;
}
IE will position cell content based on the align attributes:
<col align="left">
<col align="right" span="4">
For Mozilla a quick selector is required: (Code corrections made - see comments)
td {text-align:right;}
tr:first-child {text-align:left;}
or, slightly more economical:
td {text-align:left;}
td+td {text-align:right;}
* html fieldset {
/* \ Not Mac */
position:relative;clear:both;
margin-top:1.5em;padding:1em 0;
/* */
}
* html fieldset legend {
/* \ Not Mac */
position:absolute;
top:-0.8em;left:0.4em;
/* */
}
All are common-sense really, but someone may find them useful or enlightening!?
Posted on Friday, Oct 01, 2004 at 01:12:25.
Comments on CSS Snippets Volume 1 (2)
α comment
td {align:right;} tr:first-child {align:left;}
that did not work on firefox, the following did: td {text-align:right;} tr:first-child {text-align:left;}
Posted by steve
Friday, Apr 22, 2005 at 23:55:31
β comment
Teehee :)) Guess it had been a long week when I posted that. Cheers for the observation Steve…
Posted by Tom
Saturday, Apr 23, 2005 at 01:20:11