Software Development Exam  >  Software Development Videos  >  Learn Website Designing with XHTML and CSS  >  XHTML and CSS Tutorial - 23 - Margin

XHTML and CSS Tutorial - 23 - Margin Video Lecture | Learn Website Designing with XHTML and CSS - Software Development

45 videos

Top Courses for Software Development

FAQs on XHTML and CSS Tutorial - 23 - Margin Video Lecture - Learn Website Designing with XHTML and CSS - Software Development

1. What is XHTML and CSS?
Ans. XHTML (Extensible HyperText Markup Language) is a markup language used for structuring and presenting content on the web. CSS (Cascading Style Sheets) is a style sheet language used for describing the look and formatting of a document written in XHTML or HTML.
2. How can I use margin in XHTML and CSS?
Ans. Margin is a CSS property used to create space around an element. To use margin in XHTML and CSS, you can specify the margin value in pixels, percentages, or other units and apply it to the desired element using the margin property in CSS.
3. What is the difference between margin and padding in XHTML and CSS?
Ans. Margin and padding are both CSS properties used to create space around an element, but they have different functionalities. Margin creates space outside the element, pushing other elements away, while padding creates space inside the element, separating its content from its border.
4. Can I apply different margin values to different sides of an element in XHTML and CSS?
Ans. Yes, you can apply different margin values to different sides of an element in XHTML and CSS. By using the margin-top, margin-right, margin-bottom, and margin-left properties, you can specify different margin values for each side of the element.
5. How can I center an element horizontally using margin in XHTML and CSS?
Ans. To center an element horizontally using margin in XHTML and CSS, you can set its left and right margins to "auto" and set its display property to "block" or "inline-block". This will automatically distribute the remaining space equally on both sides, centering the element horizontally.
45 videos
Explore Courses for Software Development exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Free

,

Sample Paper

,

mock tests for examination

,

practice quizzes

,

pdf

,

XHTML and CSS Tutorial - 23 - Margin Video Lecture | Learn Website Designing with XHTML and CSS - Software Development

,

MCQs

,

Previous Year Questions with Solutions

,

Viva Questions

,

Important questions

,

shortcuts and tricks

,

Extra Questions

,

Exam

,

ppt

,

XHTML and CSS Tutorial - 23 - Margin Video Lecture | Learn Website Designing with XHTML and CSS - Software Development

,

Semester Notes

,

past year papers

,

study material

,

Summary

,

XHTML and CSS Tutorial - 23 - Margin Video Lecture | Learn Website Designing with XHTML and CSS - Software Development

,

video lectures

,

Objective type Questions

;