Hi…
I am trying to target the first child div within a specific wrapper in my html, to give it different styling to others, but am having difficulties, wondering if anyone can assist.
At the moment, my html is as so…
<div id=“wrapper”>
<cfoutput query=“my query”>
<div>
#info#
</div>
</cfoutput>
</div>
So I have a query that loops through and outputs a seperate div for each database entry.
Now what i would like to do, is have the first div on the screen…i.e, the latest entry from my database with a different background colour to the other divs…
Essentially
#wrapper div:first {
background:blue
}
Any assistance would be appreciated…
Many thanks