Posts tagged ‘Box’

CSS3 How To: rounded box corners, box shadows, and text shadows

Continuing with our CSS3 tutorial series, today we take a look at rounded box edges, box shadows, and text shadows – all using CSS3.

Rounded box corners

Many websites nowadays are making some of their more boxy elements have rounded edges to add elegance. Before CSS3 was around, this would have to be done via an image. But, here’s how to do it via CSS3: Continue reading ‘CSS3 How To: rounded box corners, box shadows, and text shadows’ »

The CSS Box Model

The CSS Box Model

All HTML elements can be considered as boxes. In CSS, the term “box model” is used when talking about design and layout.

The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, borders, padding, and the actual content.

The box model allows us to place a border around elements and space elements in relation to other elements. Continue reading ‘The CSS Box Model’ »