Skip to main content

Posts

Showing posts from March, 2021

How to start learning Web-development

Tutorial 15 display flex in css

 Flexbox - In Display flexbox property the layout of the element is block and it represent in inline element in easy word let take example if you have many container and you want to arrange them in line then you use this property for responsive use it arrange the box in a row and like inline element . Syntax - display: flex ; code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Display flex </title> <style> .flex{ border: 2px solid black; background-color: blueviolet; display: flex ; } .one{ background-color: cornsilk; border: 2px solid; height: 250px; width: 300px; } </style> </head>

Code of html and css part 4

 Example code of html and css - 1. z index and visibility code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Visiblity in css </title> <style> /* visibility property */ .visible{ visibility: visible; } .hidden{ visibility: hidden; } /* Z index property */ #index{ position: absolute; top: 700; z-index: -3; } #index1{ position: absolute; top: 700; z-index: 3; } </style> </head> <body> <h1>Visibility property </h1> <h4>1</h4> <p class="visible"> In display property if we apply inline-block property on it we can be set their width and height and element was set next to a element in line it not take extra space so in easy word it is work as both block element who's wid

Tutorial 14 z- index in css

 Property of CSS - Z-index property - In this property we can move an image in the z axis like if we want to move an image to front of an element or behind of an element we can do it with the help of this property this property always work with absolute , relative , fixed / sticky and flex property so you have to take care of it and that you use this property only with this positions always take care that and here an image given below where you clear your doubt so go through it also  syntax - z-index : x(value in positive or negative ); image - Code - 1.If we take the value of z index in negative  <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Z index in css </title> <style> #index{ positi

Code of HTML and CSS part 3

  code of HTML and CSS - 1. position property code explanation only  code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Position property in css</title> <style> /* Static position */ .static { position: static; border: 4px solid blue; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; height: 200px; width: 300px; margin: 23px 0px; } /* relative position */ .rela1 { border: 4px solid blue; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; height: 200px; width: 300px;

Tutorial 12 Css display property

 Display property in CSS - 1. inline display - In display property if we apply inline property on it we cannot be set their width and height and element was set next to a element in line it not take extra space . syntax -  Display: inline ; 2. block display - In this display property line will take whole block of line or other word the line will take complete one line space if there is element is present or not it will take whole line as a block . syntax - Display : block ; 3. Inline-block display - In display property if we apply inline-block property on it we can be set their width and height and element was set next to a element in line it not take extra space so in easy word it is work as both block element who's width and height can be changed and  inline which do not take extra space . Display : inline-block ; 4. none display -  in this property the element cannot get any space on the page and their display was none . syntax -  Display: none; code - NOTE - THE CONTENT IN THE

Code of HTML and CSS how we change font ,height width etc

  C ode of HTML and CSS - 1. how set font style in html and css - code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>font family in CSS</title> <!-- here we link the font link --> <link rel="preconnect" href="https://"> <style> /* Font family in css how we use */ .container{ font-family: Verdana, Geneva, Tahoma, sans-serif; } .container1{ font-size: 34px; } .container2{ font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; } </style> </head> <body> <!-- In the p tag the content was for showing you --> <p class="container"> In display property if we apply inline-block property on it we can be set their width and height and ele

Tutorial 13 Visibility property

 Properties of css - 1. Visibility property in css -     In this property element will can visible or hidden by using this property so let say we take a paragarph tag and write some content on it if we use visibility property so we can hide the element but the space of element in web page are left there and no other element take that space so this is it  syntax -   visibility :  visible ;     visibility :hidden ; Code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Visiblity in css </title> <style> /* visibility property */ .visible{ visibility: visible; } .hidden{ visibility: hidden; } </style> </head> <body> <h1&g

Code of HTML and CSS how we take color , border , etc

  code of HTML and CSS - 1. How we take change color in css (color and border both property) code - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>color in css</title> <style> .color1{ background-color: green; } .color2{ color: yellow; } .color3{ border: 2px solid red; } </style> </head> <body> <!-- lets take paragarph --> <p class="color1"> In display property if we apply inline-block property on it we can be set their width and height and element was set next to a element in line it not take extra space so in easy word it is work as both block element who's width and height can be changed </p> <p class="color2"> In display property if we apply inline-blo

Tutorial 11 position property in css

  Position property in css - We use this property for align the element at a particular place or in other way we set the position of element at a position their are four type of position given below  1. Static position  2. Relative position  3. Absolute position 4. Fixed position  1. Static Position -     In this element position cannot be change and they will be stick at their position and at that position are it .  syntax - position : static ; code - <! DOCTYPE   html > < html   lang = "en" > < head >     < meta   charset = "UTF-8" >     < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >     < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >     < title >Position property in css</ title >     < style >          /* Static position */          .static  {             position: static;             border:  2px  solid  red ;          

Tutorial 10 text align , decoration etc explaining

 Text in Css - 1.Text color -     here we can set color in text for making them more enhancive or if we want required to change in color of text it work perfectly  syntax - color : red; OUTPUT - text color is change to red 2.Text alignment -     It is used for align the text according to the requirement and their situation we align text at center , right , left etc syntax - text-align:center; 3.Text decoration-     It is to decorate the text let if we want to underline in text then we use text decoration and make it on the line  syntax - text-decoration: underline; OUTPUT - text have an underline decoration 4.Text transformation -  In this we transform letters into uppercase , lowercase and capitalization means if the letter is small then it will convert into uppercase or visa-versa syntax - text-transform:(uppercase , lowercase , capitalize); 5.Text spacing - It decided the space between letter and words both how many gap are between an letters and word but syntax for both is diffe