From 277266a80df799fa8def28f3560ff12a6ea45851 Mon Sep 17 00:00:00 2001 From: Bhasakar-Gupta <59666738+Bhasakar-Gupta@users.noreply.github.com> Date: Thu, 29 Oct 2020 01:33:35 +0530 Subject: [PATCH] Create Bhaskar-Gupta.css --- Bhaskar-Gupta.css | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Bhaskar-Gupta.css diff --git a/Bhaskar-Gupta.css b/Bhaskar-Gupta.css new file mode 100644 index 0000000..1bdba82 --- /dev/null +++ b/Bhaskar-Gupta.css @@ -0,0 +1,34 @@ +/* code by Bhaskar Gupta */ + +body{ + +/* background code will set the background colour and it always end with semi colon in the css */ +/* here 6 digits represent 3 pair and 3 digits represent 1 digit itself 1st pair is for red 2nd for green 3rd for blue */ + + background: #5051a0; /* this is hex code can be of 6 and 3 digits .This one is of six digits each digit can go to 0 to 9 and then a,b,c to f f is max no and 1 is the smallest code */ + background: #550; /* this is 3 digit hex code for more colour precision we use 6 digits*/ + background: rgb(255, 0, 0); /* this is another type of background colour known as rgb which goes from 0 to 255 for each value */ + background: rgba(255, 200, 100, 0.5); /* same as rgb a is for opacity a can go from 0 to 1 ....... 0.5 here means half transparent */ + + /this sets the text colour written in html page/ + + color: #a00 /* sets the colour of each and every text in the body to specified colour...... here red */ +} + + + +h3{ + + color: #a00 /* sets the colour of each and every text in the h3 elements to specified colour..... here red */ + +} + +body h3 { + + color: #2a0 /* sets the colour of each and every text in the h3 elements in the body to specified colour..... here red */ + +} + + + +/* If i keep these all three they all will run according to there postion forst body then h3 then body h3 */