Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a page-wrap div and what is it used for?

Tags:

html

class

I'm seeing div class="page-wrap" used extensively in web applications.

What is the convention for the page-wrap class, what goes inside?

like image 323
Justin Avatar asked May 29 '11 09:05

Justin


People also ask

What does Page wrap do?

Definition and Usage. The wrap attribute specifies how the text in a text area is to be wrapped when submitted in a form.

What is a wrap div?

A wrapper is an element, commonly a div, that encloses one or more other. elements in the HTML markup, e.g.: <div id="wrap"> <h1>Headline</h1>

What is div used for in HTML?

The <div> tag defines a division or a section in an HTML document. The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript. The <div> tag is easily styled by using the class or id attribute. Any sort of content can be put inside the <div> tag!

What is HTML page wrap?

Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The term wrapper is common for that. We give it a class, and that class is responsible for encapsulating all visual elements on the page.


1 Answers

It all depends on your css layout you are applying... Sometimes, people use wrap containers to use sticky footer technique (header and content in the wrap, footer after the wrap - google it); sometimes with this wrapper the designer just wants to fix the entire page to certain width and center it (not saying that this is the best way or that there is a best way), etc... It is really subjective, because it is mostly a design thing.

like image 143
Denis Biondic Avatar answered Oct 26 '22 02:10

Denis Biondic