CodeLab
Tutorials For Everyone
Run
Learn CSS
<!Doctype HTML> <html> <head> <title>CSS Margins for Individual Sides</title> <style> .para{ padding: 50px; background: #555; color: #fff; text-align: center; margin-left: 50px; margin-top: 0px; margin-right:100px; margin-bottom: 20px; } </style> </head> <body> <h2>CSS Margins for Individual Sides</h2> We can set the margin of an element's individual sides as follows. <div style="border: 5px solid #29b6f6;"> <p class="para"> This paragraph element has margin values as <kbd>margin-left: 50px;</kbd>, <kbd>margin-top: 0px;</kbd>, <kbd>margin-right:100px;</kbd> and <kbd>margin-bottom: 20px;</kbd> </p> </div> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console