Categories
CSS Wordpress

How to style caption in wordpress theme ?

align images wordpress, how to align image, image alignment wordpress

WordPress 3.0 has a inbuilt class (wp-caption) for styling image captions. One building wp theme from scratch just need to add the below code to syle.css This code is very important from point of view of web developers. Happy learning

.wp-caption { margin: 5px; padding: 5px; border: solid 1px #E5E5FF; background: #E5F2FF; font-size:90%; color: black }

You will find many more simple and difficult tutorials on Think n code. Hope you enjoy learning with us.

By Anirudh Babbar

A website developer, loves #wordpress #drupal #php. Love posting about wordpress, php, bootstrap and SEO. Also provide online/offline training on wordpress, drupal, php and SEO. I am available on Twitter @ anibabbar , Skype @anibabbar , gmail @anibabbar !! facebook @thinkncode.com