Skip to main content

Learn CSS for beginner : borders

To make a border around an element, all you need is border-style. The values can be soliddotteddashed,double,
 grooveridgeinset and outset.
border-width sets the width of the border, most commonly using pixels as a value. There are also properties forborder-top-widthborder-right-widthborder-bottom-width and border-left-width.
Finally, border-color sets the color.
Add the following code to the CSS file:
h2 {
    border-style: dashed;
    border-width: 3px;
    border-left-width: 10px;
    border-right-width: 10px;
    border-color: red;
}
This will make a red dashed border around all HTML secondary headers (the h2 element) that is 3 pixels wide on the top and bottom and 10 pixels wide on the left and right (these having over-ridden the 3 pixel wide width of the entire border).
                        Next>>>

Popular posts from this blog

Free tips to save yourself from phishing

Free tips to save yourself from phishing Phishing is a type of social building method utilized by programmers to assemble delicate data, for example, usernames, passwords and Visa points of interest by acting like a trustworty individual/association. Since most online clients are ignorant of the methods utilized as a part of completing a phishing assault, they regularly fall exploited people

get free google adsense in 24 hours tips and tricks : 2

get google adsense free tips and tricks :  2 Hello individuals. You may already know that search engines brings in all-around $761. 71 each second. This uncomplicated supply advertising which usually obtain placed on the websites and websites and search engines obtain payed as someone visit them. Just about every beginner doodlekit when when tried out to come up with a few profit through it's