You are on page 1of 3

AgerNic.

com WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

HOME HTML CSS PHP7 SQL Online Editor Templates

HTML Home HTML div class container


Online Editor
HTML Introduction
<< Previous Page
Next Page >>
ONLINE EDITOR

HTML - Elements HTML form action HTML headings

HTML Tags Attributes


HTML Tutorial » HTML div class container
HTML comment
A container is a <div> element with a class=“container”. The container will affect all elements inside within the
<div>
HTML Headings container.

How to code in HTML Div class "container" hasn’t a special meaning but container is just a well chosen name. You can replace with any other name
if we don't talk about Bootstrap. In CSS Bootstrap is already implemented.

HTML Div Syntax: COLOR PICKER

Div style
<div class="container"> your_text</div>
Div class

Div border color


 

HTML Container
HTML class container, fluid, center, color,
HTML container This tool makes it easy to create,
<div class=”container”>anything</div>
adjust, and experiment with
Div class container Div is a tag.
custom colors for the web.
Class is an attribute of div tag

Responsive styles Container is a class name


Container tag In the next example we show you HTML div class container, fluid, center, color templates. HTML Templates
.container {

HTML Button width: 100%; /* this make container fluid*/

height: auto;

Button link
background-color: #FFC; /* this make content background-color*/

margin-right: auto; /* this make content center*/

Button onclick
margin-left: auto; /* this make content center*/

Button action }

Example
HTML Link
1 <!DOCTYPE html>
Link new tab 2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Link underline 5 <title>HTML div class container</title>
6 <style type="text/css">
Link tag 7 body {
8 font-family: Verdana, Geneva, sans-serif; Magnews2 is a modern and
9 font-size: 14px; creative free magazine and news
HTML Image 10 } website template that will help
11 .header {
12 width: 100%; you kick off your online project in
Image tag, code style.
13 height: 80px;
14 background-color: #E1E1E1;
Image Link 15 box-sizing:border-box;
16 margin-bottom: 4px;
Image Size 17 margin-top: 4px;
18 margin-right: auto; CSS HTML Layout
Image Background 19 margin-left: auto;
20 }
21 .container {
22 width: 100%;
HTML Text 23 height: auto;
24 background-color: #FF9;
Text how to display 25 margin-right: auto;
26 margin-left: auto;
How to add text 27 color: #066;
28 }
Text Tag 29 .footer {
30 width: 100%;
31 height: 80px;
Text Style 32 background-color: #666666;
33 color: #FFF;
Text Align 34 margin-top: 12px;
35 margin-right: auto;
Text Size 36 margin-left: auto; Find here examples of creative
37 } and unique website layouts.
Text Color 38 </style>
39 </head>
40 <body>
Text Color Style 41 <div class="header">This is my Header<br />
42 This is box is: &lt;div class=&quot;header&quot;&gt;</div> Free CSS HTML Menu
Colors text background 43 <div class="container">
44 <h2>HTML Tutorial » HTML div class container - size - width 75%</h2>
45 <p>This is box is: <strong>&lt;div class=&quot;container&quot;&gt;</strong> </p>
HTML Table 46 <p>You can replace 75% width with 990px. </p>
47 <p><strong>Your text here</strong></p>
48 <p>- Grape silver beet collard greens avocado quandong fennel gumbo black-eyed
HTML Table 49 pea watercress potato tigernut corn groundnut. Chickweed okra pea winter purslane
50 coriander yarrow sweet pepper radish garlic brussels sprout groundnut summer purslane
Table style 51 earthnut pea tomato spring onion azuki bean gourd. Gumbo kakadu plum komatsuna
52 black-eyed pea green bean zucchini gourd winter purslane silver beet rock melon Find here examples of creative
Table Color 53 radish asparagus spinach. - </p> and unique website CSS HTML
54 <!-- end container div class --> </div> menu.

55 <div class="footer">This is my footer text</div>


Table Row Colspan 56
57 </body>
Table Width 58 </html>

Table Style  Execute  


Table Border
Note: Container itself is not a keyword in HTML
HTML Font
Font Face  
Font Size Related subjects:

Font Color HTML div class tag

HTML Form Div border color

HTML form
Open link in new tab - Create link
Form method  

Form select Tags: class container html, fluid, center, color, vs container fluid, in angular, in java, row, width, center, class container fluid
html, make, height
html class container, -fluid, row, width, center, size, html div container-fluid, html element
Form action attribute
 
Form action radio
How to make class container width, center

Is - container - for div class a special elemnt or special meaning? Simple - You could call it main-box or big-frame how you
like, but if you see the word container on your HTML code, you know it is to contain something, and give it a good position on
the HTML code.

You can replace CSS container 75% width ( % give you fluid content) with 990px (but 990px give you fix content).

Example

1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>HTML div class container</title>
6 <style type="text/css">
7 body {
8 font-family: Verdana, Geneva, sans-serif;
9 font-size: 14px;
10 }
11 .header {
12 width: 100%;
13 height: 80px;
14 background-color: #E1E1E1;
15 box-sizing:border-box;
16 margin-bottom: 4px;
17 margin-top: 4px;
18 margin-right: auto;
19 margin-left: auto;
20 }
21 .container {
22 width: 75%;
23 height: auto;
24 background-color: #9FC;
25 margin-right: auto;
26 margin-left: auto;
27 color: #039;
28 }
29 .footer {
30 width: 100%;
31 height: 80px;
32 background-color: #666666;
33 color: #FFF;
34 margin-top: 12px;
35 margin-right: auto;
36 margin-left: auto;
37 }
38 </style>
39 </head>
40 <body>
41 <div class="header">This is my Header<br />
42 This is box is: &lt;div class=&quot;header&quot;&gt;</div>
43 <div class="container">
44 <h2>HTML Tutorial » HTML div class container - size - width 75%</h2>
45 <p>This is box is: <strong>&lt;div class=&quot;container&quot;&gt;</strong> </p>
46 <p>You can replace 75% width with 990px. </p>
47 <p><strong>Your text here</strong></p>
48 <p>- Grape silver beet collard greens avocado quandong fennel gumbo
49 black-eyed pea watercress potato
50 tigernut corn groundnut. Chickweed okra pea winter purslane coriander yarrow
51 sweet pepper radish
52 garlic brussels sprout groundnut summer purslane earthnut pea tomato spring
53 onion azuki bean gourd. Gumbo kakadu plum komatsuna black-eyed pea green
54 bean zucchini gourd winter purslane silver beet rock melon radish asparagus
55 spinach. - </p>
56 <!-- end container div class --> </div>
57 <div class="footer">This is my footer text</div>
58
59 </body>
60 </html>
 Execute  

Tags: free download form, code, with css, with validation, html form checkbox label, group, checked, array, required, value,
post, true false, limit, list, multiple values

<< Previous Page


Next Page >>

HTML form action HTML headings

Tags: class container html, fluid, center, color, vs container fluid, in angular, in java, row, width, center, class container fluid
html, make, height
html class container, -fluid, row, width, center, size, html div container-fluid, html element

HTML div class container - html tutorial

Terms | Privacy | Cookies

© 2010-2022 ID62

HTML Tutorial |
CSS Tutorial |
PHP7 Tutorial |
SQL Tutorial

jQuery replace...

jQuery replaceClass...

jQuery click ()...

jQuery switchClass()...

jQuery draggable()...

jQuery HTML...

jQuery scroll smooth...

jQuery scroll()...

jQuery stop()...

jQuery animate()...

jQuery SlideToggle()...

jQuery slideDown()...

jQuery slideUp()...

jQuery fadeToggle...

jQuery fadeOut()...

jQuery fadeIn()...

jQuery Effects - hide () and show ()...

jQuery Events...

jQuery Attributes...

jQuery Selectors...

You might also like