I'm trying to apply :first-child to an element with a class. It only
needs to work in safari (intranet). I'm using Joomla, so changing the
html isn't really an option. Can it be done?
I've been trying variations on:
.leading:first-child {
border-top: 1px solid #ccc;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
<code>
...
<div class="content">
<div class="description">
<h1>resources</h1>
</div>
<div class="leading">
<h1>foo</h1>
<p>lorem ipsum dolor sit amet...</p>
</div>
<div class="leading">
<h1>bar</h1>
<p>lorem ipsum dolor sit amet...</p>
</div>
</div>
...
</code>
Dave Solko
Pixel Alchemy
[email protected]
513.300.2165
______________________________________________________________________
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/