Climis, Tim wrote:
> I'm just curious, is there a css3 selector for previous siblings?
> And if there is, how widely supported is it?
>
> It'd be useful for styling paragraphs that come before (introducing)
> lists for instance.
None exists, but you could use jQuery to do it:
<style type='text/css'
media='screen,projection'>
p.p_before_ul
{
font-weight:bold;
}
</style>
<script type='text/javascript'
src='http://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('jquery','1');
google.setOnLoadCallback(function(){
$('ul').prev('p').addClass('p_before_ul');
});
</script>
Anyway, hope it helps.
--Bill
--
<!--
! Bill Brown <[email protected]>
! Web Developologist, WebDevelopedia.com
-->
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/