CSS Box Model
Thread TagsAndroid Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css designed Design layout digital marketing Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing how to create manual sidebar HTML? Illustrator Internship Training logo Design logo designing Magento mobile phones Photoshop PHP Programming QA react-native Responsive Scroll Website SEO Single Page Website Stock Managment System Testing UI/UX Development UI Design UI Designing UI development UX Design Viewport Web Designing web pages Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- July 24, 2018 at 3:24 pm #45330
When laying out a document, the browser’s rendering engine represents each element as a rectangular box according to the standard CSS basic box model. CSS determines the size, position, and properties (color, background, border size, etc.) of these boxes.
Every box is composed of four parts (or areas), defined by their respective edges: the content edge, padding edge, border edge, and margin edge.
The content area, bounded by the content edge, contains the “real” content of the element, such as text, an image, or a video player. Its dimensions are the content width (or content-box width) and the content height (or content-box height). It often has a background color or background image.
If the box-sizing property is set to content-box (default), the content area’s size can be explicitly defined with the width, min-width, max-width, height, min-height, and max-height properties.
The padding area, bounded by the padding edge, extends the content area to include the element’s padding. Its dimensions are the padding-box width and the padding-box height.
- December 28, 2018 at 10:57 am #50960
The CSS box model used to define how every web page on the Internet is rendered. CSS treats each element in HTML document as a “box” with different properties which determine where that appears on the page.
Each HTML element comes in two varieties. CSS Box Model includes Two elements:
Block Element: block elements is that they take up the whole space of the box they are placed in.
Inline Element: inline elements take up only as much space as they need. This element also doesn’t move to a new line or push other elements down.
You must be register. Registration is 100% free.to reply to this thread.Please or