2 replies [Last post]
cpam
cpam's picture
Offline
newbie
Last seen: 7 years 33 weeks ago
Timezone: GMT-5
Joined: 2013-02-17
Posts: 5
Points: 7

Hey I am not sure how to do this and didnt find much info on google. How can I target h2 within aside and change the font size to 12?
I was thinking you would do something like this.

aside{
h2{
}
}
but doesn't work, any tips? Thank you

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 day 52 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9772
Points: 3854

Selectors

This is basic stuff. See §5.5 Descendant selectors.

It will be a Good Thing® for you to read thoroughly the specs, Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. Make it your bed-time reading.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

cpam
cpam's picture
Offline
newbie
Last seen: 7 years 33 weeks ago
Timezone: GMT-5
Joined: 2013-02-17
Posts: 5
Points: 7

Thank you for the help ill

Thank you for the help ill check it out