Css Basic Properties
Css Basic Properties
✅ Properties
Property Description
📝 Example
css
CopyEdit
div {
🔹 Shorthand
css
CopyEdit
🔹 Rounded Corners
css
CopyEdit
border-radius: 10px;
✅ Properties
Property Description
📝 Example
css
CopyEdit
div {
margin: 30px;
🔹 Shorthand
css
CopyEdit
🔹 Auto Centering
css
CopyEdit
div {
margin: 0 auto;
width: 200px;
Property Effect
4o
You said:
ChatGPT said:
CSS classification properties control how elements behave in layouts, including display types,
positioning, floating, visibility, and content handling.
Value Behavior
📝 Example:
css
CopyEdit
div {
display: block;
span {
display: inline;
📌 Effect:
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
img {
float: left;
margin-right: 10px;
📌 Effect: The image floats left, and text wraps around it.
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
.clearfix::after {
content: "";
display: block;
clear: both;
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
div {
position: absolute;
top: 50px;
left: 100px;
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
p{
visibility: hidden;
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
div {
width: 200px;
height: 100px;
overflow: auto;
✅ Common Values:
Value Effect
📝 Example:
css
CopyEdit
.box {
position: absolute;
z-index: 10;
🎯 Summary Table
Property Effect
🚀 Key Takeaways