---
title: "Discussion on \"Basic CSS Questions Part 2\" | Hashnode"
description: "Discussion on \"Basic CSS Questions Part 2\". What does the line-height property control in CSS?\n\nIt sets the height of a line box.\n\n\nHow do you add a border to an element in CSS?\n\nUsing the border property.\n\n\nExplain the difference between padding and margin.\n\nPadding is the space inside an ele..."
url: "https://hashnode.com/posts/basic-css-questions-part-2/6587cff22814d9d1a74a474f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Basic CSS Questions Part 2](https://bigsmoke.hashnode.dev/basic-css-questions-part-2?utm_source=hashnode&utm_medium=feed)

What does the line-height property control in CSS? It sets the height of a line box. How do you add a border to an element in CSS? Using the border property. Explain the difference between padding and margin. Padding is the space inside an ele...

Dec 24, 2023 · 3 min read · bigsmoke.hashnode.dev  
Read the article

-   [#line-height](https://hashnode.com/tag/line-height)
-   [#css-visited](https://hashnode.com/tag/css-visited)
-   [#import-css](https://hashnode.com/tag/import-css)
-   [#border](https://hashnode.com/tag/border)
-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#css-opacity](https://hashnode.com/tag/css-opacity)
-   [#css-text-alignment](https://hashnode.com/tag/css-text-alignment)
-   [#css-font-size](https://hashnode.com/tag/css-font-size)
-   [#background-image](https://hashnode.com/tag/background-image)
-   [#css-hover](https://hashnode.com/tag/css-hover)
-   [#flex-direction](https://hashnode.com/tag/flex-direction)
-   [#flex-css](https://hashnode.com/tag/flex-css)
-   [#flexbox](https://hashnode.com/tag/flexbox)
-   [#flex](https://hashnode.com/tag/flex)

## Written by

[Namya Shah](https://hashnode.com/@bigsmoke7)

@bigsmoke7 · Gujarat, India

  
[View profile](https://hashnode.com/@bigsmoke7)

An enthusiast developer

I am a developer who is very enthusiast about technology and coding.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
