Box Model

Dear Sciaku Learner you are not logged in or not enrolled in this course.

Please Click on login or enroll now button.

If you have any query feel free to chat us!

Happy Coding! Happy Learning!

Lecture 54:- Box Model

 

The box model in CSS refers to the rectangular boxes that are generated for each HTML element on a web page. Each box consists of four parts: content, padding, border, and margin.

  1. Content: This is the area inside the box where the element's content is displayed.
  2. Padding: This is the area between the content and the border. You can control the size of the padding using the padding property in CSS.
  3. Border: This is a line that surrounds the content and padding. You can control the appearance of the border using the border property in CSS.
  4. Margin: This is the area outside the border, and separates the box from other elements on the page. You can control the size of the margin using the margin property in CSS.

Here's an example to show the box model:

cssCopy code

div {  width: 300px;  height: 200px;  padding: 20px;  border: 10px solid black;  margin: 30px; }

In this example, the div element will have a content area that is 260px wide and 160px tall, a 20px padding, a 10px solid black border, and a 30px margin.

6. Styling With CSS

Comments: 2

profile
@niteshguptav63
17-Nov-2024, 01:39 PM

I am not able to access videos from second class and further. I have already completed first class

profile
@niteshguptav63
16-Nov-2024, 10:56 AM

When will I get my course?

profile
@admin79
17-Nov-2024, 01:29 PM

Now, Your query was resolved.

Frequently Asked Questions (FAQs)

How do I register on Sciaku.com?
How can I enroll in a course on Sciaku.com?
Are there free courses available on Sciaku.com?
How do I purchase a paid course on Sciaku.com?
What payment methods are accepted on Sciaku.com?
How will I access the course content after purchasing a course?
How long do I have access to a purchased course on Sciaku.com?
How do I contact the admin for assistance or support?
Can I get a refund for a course I've purchased?
How does the admin grant access to a course after payment?