pseudo-element html5 (in learning)

Adjacent sibling selector

p + p {font-size:smaller} *Mengedit element paragraf di dalam paragraf

#title + ul { margin-top: 0; } /* Select ‘ul’ yang berada tepat dibawah element #title */

Adjacent-selector-example

 

General sibling selector

p ~p {font-size:bigger} *select element p yang terdapat didalam element p lainnya dimana saja*

div ~p {font-color: #ff0} *select element p yang terdapat pada div di mana saja*

General-sibling-example

bersambung….

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s