English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What is the overflow command used for in CSS? Can you tell from a design point of view why you would use it?

Also sometimes when I look at others CSS code. I notice they have ID called wrapper. Why do they do this? What is a wrapper?

Thanks in advance

2007-05-01 03:00:24 · 3 answers · asked by jack 6 in Computers & Internet Programming & Design

3 answers

Usually a wrapper is just a name given to a page element usually a div that is used to "wrap" all of the page content. It may be used to place a border around everything on the page by then styling the wrapper div.

Overfow is used to control what happens when the length of content extends out of the element containing it.

If you are desinging a layout and you have say a news box. As a designer, you know you want that news box to stay a set width or height but you cant control the lenght of the news items that users may add. Using overflow, you can choose what happens when a really long news item is added to the site. The options are "visible", the content will show and punch out of the box. "scroll" will place scroll bars on the containing element and the user can then use them to scroll to see the content that is beneath the bottom of the box. "Hidden" will just clip the content off. Anything below the bottom of the box will be invisialbe to the user.

2007-05-01 03:12:41 · answer #1 · answered by planetmatt 5 · 0 0

A wrapper is what lets you arbitrarily (if you wish from time to time) set the width of a page. For example, in a flexible two-column layout, say, you may have a div named "sidebar" that occupies "34%" and a div named "main" that occupies "65%" then you can code (one day) "wrapper" to occupy say "85%" of the viewer's screen, and come back next week and decide "wrapper" should occupy "75%" of the viewer's screen and you won't have to rediddle "main" and "sidebar"!

As for "overflow", what he said, above!

2007-05-01 04:57:16 · answer #2 · answered by fjpoblam 7 · 0 0

I favor lets answer countless issues, yet at the same time as 2 diverse departments make 2 diverse judgements on the fly, then you actually can get 2 diverse consequences without both being a lie. those departments do not continually agree, and could be really jealous of their autonomy. although the video develop right into a narrative the completed international develop into attentive to, and contained in the longer time period it makes no distinction in any respect to the outcome. Nor does the call of the crew responsible, nor does 'reason' in the back of the attack. The attack befell and four men died and no call, no project of duty, no reason would have replaced that.

2016-11-23 19:52:17 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers