Quantcast
Channel: Gadgetronicx
Viewing all articles
Browse latest Browse all 215

MULTI COLORED FRAMES USING HTML AND CSS

$
0
0
Multiple color frames using HTML and CSS codings
This is a interesting post which explains you how to create multiple colored frames using simple CSS and HTML codes.Previously i have explained about Creating attractive shapes using HTML and CSS and in this post you are about to see how to add colored frames to it.These codes can be applied to web elements such as table,paragraph and image.Now lets move on the codes to create this frame.

HTML CODE:
The HTML coding of this was very simple all you have to do is place your desired element in the <div> tag defining the class name along with it.
  1. <div class="class name">.....</div>

CSS CODES:
This CSS code was the backbone of  the multiple colored frames and it was done by means of changing the border-radius and border-color of the elements.

ROUNDED FRAME:
 Circle multi color frames using HTML and CSS
  1. .frame1{
  2. border-color:#000000 #4785F8;
  3. border-image:none;
  4. border-radius: 50% 50% 50% 50%;
  5. -moz-border-radius: 50% 50% 50% 50%;
  6. -webkit-border-radius: 50% 50% 50% 50%;
  7. border-style:solid;
  8. border-width:40px;
  9. height:200px;
  10. width:200px;}

SQUARE FRAME:
  1. .frame2{
  2. border-color:#000000 #4785F8;
  3. border-image:none;
  4. border-radius: 0 0 0 0;
  5. -moz-border-radius:0 0 0 0;
  6. -webkit-border-radius:0 0 0 0;
  7. border-style:solid;
  8. border-width:20px;
  9. height:200px;
  10. width:200px;
  11. }

ROUNDED BORDER FRAME:
Rounded corner frame using HTML and CSS
  1. .frame3{
  2. border-color:#E9E7E4 #4785F8;
  3. border-image:none;
  4. border-radius: 50px 0 50px 0;
  5. -moz-border-radius:50px 0 50px 0;
  6. -webkit-border-radius:50px 0 50px 0;
  7. border-style:solid;
  8. border-width:20px;
  9. height:200px;
  10. width:300px;
  11. }

ROUNDED BORDER FRAME:
Rounded corner frame using HTML and CSS
  1. .frame4{
  2. border-color:#00FF40 #000000;
  3. border-image:none;
  4. border-radius: 0px 50px 0px 50px;
  5. -moz-border-radius:0px 50px 0px 50px;
  6. -webkit-border-radius:0px 50px 0px 50px;
  7. border-style:solid;
  8. border-width:20px;
  9. height:200px;
  10. width:300px;
  11. }


Viewing all articles
Browse latest Browse all 215

Trending Articles