You may find the need to create a surrounding box around an element for better manipulation.
To create a box in HTML, we used either
Recall that that
<div> is a block-level element, while
span is an inline-element. This means that
<div> will take up the entire line, pushing its surrounding content above or below it, while
span inserts itself within the line.
We can set the dimensions of this box in CSS with the height and width properties.
You can limit the width or height with themin-width, andmax-width properties. These properties are useful in case your element contains text. You want to avoid your lines of text being too wide, as you having the user move from screen to screen can tire out his or her eyes!
Want your web site to display more quickly? This book presents 14 specific rules that will cut 25% to 50% off response time when users request a page. Author Steve Souders, in his job as Chief Performance Yahoo!, collected these best practices while optimizing some of the most-visited pages on the Web.$ Check price
Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.$ Check price