Subscibe our Newsletter for FREE and stay up to date with our daily lesson*

New CSS Styles

CSS is Cascading Style Sheet. It is usually called as skin of your sites. CSS has been existed from 1995. It is generally found by Blabla.

Nowadays, there are some new properties of CSS to make sites look more stylish and have good looking. They are

  1. Border Radius

    Border radius is giving more flexible look on your site. It will make a curve on every of your corner. It makes a box looks less solid. With this new property, you don’t have to draw a curvy box, save it in JPG, and load it. Here is the syntax:
    <style>
    .content {
    background-color:#369;
    -moz-border-radius: 10px 20px 30px 40px;
    -khtml-border-radius:10px 20px 30px 40px;
    border-radius:10px 20px 30px 40px;
    }
    </style>

    This example will create a box container with radius on the every corner. Left=10px , Up=20px , Right=30px , Bottom=40px. You can change the value of each radius

    This is the result
  2. Box Shadow

    This property lets you to have a shadow effect. Just like Adobe PhotoShop have. Here is the syntax:
    <style>
    .content {
    background-color:#369;
    -moz-box-shadow: 10px -15px 20px;
    }
    </style>

    here is the result

    That syntax describes about where the shadow must be placed and how long does it take to spend the shadow.
    Horizontal Location = 10px (on the right of box)
    Vertical Location = -15px (on the bottom of box)
    Blur Length = 20px (on right bottom of the box)
    You can change the values with all you want

  3. Opacity

    Like described, it influences the transparency of an object or like Alpha property on the Adobe Flash. The syntax will be
    <style>
    .content {
    opacity:0.5;
    }
    </style>

    The value 0.5 means that the following object has 50% transparency. You can change the value from 0.00 to 1.00

    Here is the result

Let's talk it out!

6 Responses to “New CSS Styles”

  • morison dony

    I really liked your blog!


  • Timothy Rusher

    A good background check service is almost impossible to find.


  • Vickie Backous

    Thanks for posting do you have feed here? I’d like to save them


  • Darcie Longstreet

    nice styles
    but i think IE wouldn’t recognize those soon :-)


  • WP Content Plugins

    I am not good in CSS, can you please guide me how to implement this code for my blog side bar.


    • Julian

      hi there
      as the example, you can try bending your border into smooth corner

      1. Open your style.css on Dashboard > Theme Editor
      2. Find the #header { border-style: double; border-color: #ddd; clear: both; }
      3. Replace with #header { border-style: double; border-color: #ddd; clear: both; -moz-border-radius:10px;}

      the -moz-border-radius will make your border have smooth corner

      :-)


What is in your mind ?

Subscribe Me

Learn more the basic tips about WordPress and PHP coding. You can subscribe to our Newsletter to stay in touch with every new stories FREE

Sponsors

WooThemes - Where there's a Woo, there's a way!

Our FaceBook (new)


Discussion Topics

Who am I ?

My name is Julian Widya Perdana. I study at University of Gadjah Mada, Yogyakarta. I am a young developer addicted in JavaScript, Plugins, Themes, AJAX, and PHP developement. If you need anything, then submit it on Contact Us. If you feel satisfy with my work, please support me to keep it developed

Our Community

Discussion

dudemjk

Thank you for this plugin, I will install and add to my wordpress blog.

julian

i do :-) this is an invention and i appreciate it...

Julian

never mind dude :D thanks for stopping by
Close