Ray's Coding
Welcome to Ray's free coding forum! Here we help people learn to code, and share knowledge of coding.

Please feel free to sign up and begin your learning,teaching or sharing adventure!
Ray's Coding

Ray's coding forum for teaching, sharing, and learning.
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  


 [Beginner TuT] How to make borders using CSS

Go down 
God Ray
God Ray

Posts : 36
Code Tokens : 22443
Join date : 2013-05-02
Age : 21
Location : North America

[Beginner TuT] How to make borders using CSS Empty
PostSubject: [Beginner TuT] How to make borders using CSS   [Beginner TuT] How to make borders using CSS EmptyFri May 03, 2013 3:11 am

How to make borders with CSS

Hey everyone, today I shall walk you through how to make some pretty beginner borders in html using css styling.

First off go ahead and make a html document and name it whatever you want!

Now I will be giving you a code to paste into your html document,


border: 2px red solid;

  <div class="border">
My border

Now that you have copied and pasted that into your html document, save it as (anyname).html and open it in a web browser and you should confronted with a square like border.

How to edit this border?
To edit this border's size you may change these 2 values in your html document, "Width:100px;" and "Height:100px;"

border: 2px red solid;      /* <<<<CHANGE THE COLOR AND STYLE<<<<</*
width:100px;        /* <<<<<<<<<<CHANGE THAT<<<<<<<<<<<<<<<*/
height:100px;        /*  <<<<<<<<<<< AND THAT<<<<<<<<<<<*/

Explanation of things:

 border: 2px red solid;

This inidcates how big the border is (2px) the border color (red) and the border style (solid).


This indicates the width(100px) and the height(100px) of the border.

I will post later on more border style's for you guys to play around with and use.

If you cannot find the color you want use: Click here !!!

Please post below if you have any questions for would like more detail on certain parts.
Back to top Go down
View user profile http://rayscoding.forumotion.com
[Beginner TuT] How to make borders using CSS
Back to top 
Page 1 of 1
 Similar topics
» Spanky, I do recognize and acknowledge.

Permissions in this forum:You cannot reply to topics in this forum
Ray's Coding :: Coding :: CSS-
Jump to: