Breaking

Tuesday, 1 March 2016

Css lecture 4 in Urdu

                             Css
Css Margin
      Margin use for space around Html Element
4 types hai es k
The margin-bottom specifies the bottom margin of an element.
The margin-top specifies the top margin of an element.
The margin-left specifies the left margin of an element.
The margin-right specifies the right margin of an element

html>
   <head>
   </head>
 
   <body>
      <p style="margin: 15px; border:1px solid black;">
      all four margins will be 15px
      </p>
     
      <p style="margin:10px 2%; border:1px solid black;">
      top and bottom margin will be 10px, left and right margin will be 2% of the total width of the document.
      </p>
     
      <p style="margin: 10px 2% -10px; border:1px solid black;">
      top margin will be 10px, left and right margin will be 2% of the total width of the document, bottom margin will be -10px
      </p>
     
      <p style="margin: 10px 2% -10px auto; border:1px solid black;">
      top margin will be 10px, right margin will be 2% of the total width of the document, bottom margin will be -10px, left margin will be set by the browser
      </p>
   </body>
 
</html>


Code ko run kar dik lina and jo border use hoa hai wo border bana nay k lay use hota hai es k b 4 tye hai
Border-left
border-right
border-bottom
border-top



Css List::
<html>
   <head>
   </head>
 
   <body>
      <ul style="list-style-type:circle;">
         <li>Maths</li>
         <li>Social Science</li>
         <li>Physics</li>
      </ul>
     
      <ul style="list-style-type:square;">
         <li>Maths</li>
         <li>Social Science</li>
         <li>Physics</li>
      </ul>
     
      <ol style="list-style-type:decimal;">
         <li>Maths</li>
         <li>Social Science</li>
         <li>Physics</li>
      </ol>
     
      <ol style="list-style-type:lower-alpha;">
         <li>Maths</li>
         <li>Social Science</li>
         <li>Physics</li>
      </ol>
<ol style="list-style-type:lower-roman;">
         <li>Maths</li>
         <li>Social Science</li>
         <li>Physics</li>
      </ol>
</body>
</html>
output
o Maths
o Social Science
o Physics
Maths
Social Science
Physics
1. Maths
2. Social Science
3. Physics
a. Maths
b. Social Science
c. Physics
i. Maths
ii. Social Science
iii. Physics


Muwadat Ali

No comments:

Post a Comment