answersLogoWhite

0

How can you use div under div?

Updated: 12/11/2022
User Avatar

Wiki User

13y ago

Best Answer

It's not that hard. If this is what you mean:

<div>

<div>

<h1>Some content</h1>

</div>

</div>

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you use div under div?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Use div tags to align text right?

&lt;div style="text-align:right"&gt; or &lt;div align="right"&gt;


Can you use different divs in the background 'body' div without disturbing the overall flow of the 'container' div?

Yes, the easiest way to do this is to change the z-index of the div so it is generated on a different layer. An example you could do is below: &lt;div style='position:absolute;z-index:-1;'&gt; This will be behind the main div &lt;/div&gt; &lt;div&gt; This is the main div &lt;/div&gt;


What is the difference between the Div and Span tag?

A div is a block element. This means that if you use a div, unless you float objects next to it using CSS, the div will be alone on a line. A span is an inline element. This means that unless you use line breaks next to it or change it to a block element using CSS, the span will be on the same line as whatever is next or before to it in the code. For example: This is a &lt;div&gt;element&lt;/div&gt; text is above and below but not beside This is a &lt;span&gt;element&lt;/span&gt;, text is before and after on the same line.


Div class tags for HTML?

&lt;div&gt;hjghj&lt;div&gt; is a layer


Can you create div in textarea in HTML?

No you can't. While you can put div tags inside textarea tags, as anything in the textarea is treated only as text, the browser will ignore the div tags and they will show as text only and so have no impact. So if you do want sections for text, you would have to look at other ways of doing it, like having several text areas with different formatting.

Related questions

Use div tags to align text right?

&lt;div style="text-align:right"&gt; or &lt;div align="right"&gt;


Can you use different divs in the background 'body' div without disturbing the overall flow of the 'container' div?

Yes, the easiest way to do this is to change the z-index of the div so it is generated on a different layer. An example you could do is below: &lt;div style='position:absolute;z-index:-1;'&gt; This will be behind the main div &lt;/div&gt; &lt;div&gt; This is the main div &lt;/div&gt;


How do you make a DIV that never leaves the browser window?

You can use 'position:fixed' or you can use javascript to make sure that a div always stays in view inside the client window.


How can you see the php code that is executed in your browser?

May be this example will help. Please focus on where ob_implicit_flush(true) and ob_end_flush(); are placed in your code. Version 1:-------------------------------- &lt;?PHP ob_implicit_flush(true); ob_end_flush(); ?&gt; e &lt;div&gt;a&lt;div&gt;a&lt;/div&gt; &lt;?PHP sleep(1); ?&gt; &lt;div&gt;b&lt;/div&gt; &lt;?PHP sleep(1); ?&gt; c&lt;/div&gt; Version 2:------------------------------ &lt;?PHP ob_implicit_flush(true); ob_end_flush(); ?&gt; e&lt;div&gt;a&lt;div&gt;a&lt;/div&gt;&lt;/div&gt; &lt;?PHP sleep(1); ?&gt; &lt;div&gt;b&lt;/div&gt; &lt;?PHP sleep(1); ?&gt; c&lt;/div&gt; Version 3:------------------------------ &lt;?PHP ob_implicit_flush(true); ob_end_flush(); ?&gt; e&lt;div&gt;a&lt;div&gt;a&lt;/div&gt;&lt;!--&lt;/div&gt;--&gt; &lt;?PHP sleep(1); ?&gt; &lt;div&gt;b&lt;/div&gt; &lt;?PHP sleep(1); ?&gt; c&lt;/div&gt; ?&gt;


What is the difference between the Div and Span tag?

A div is a block element. This means that if you use a div, unless you float objects next to it using CSS, the div will be alone on a line. A span is an inline element. This means that unless you use line breaks next to it or change it to a block element using CSS, the span will be on the same line as whatever is next or before to it in the code. For example: This is a &lt;div&gt;element&lt;/div&gt; text is above and below but not beside This is a &lt;span&gt;element&lt;/span&gt;, text is before and after on the same line.


Div class tags for HTML?

&lt;div&gt;hjghj&lt;div&gt; is a layer


What is the Perimeter of a 4 X 6 square?

This is a trick question. A square by definition has four equal sides, therefore it cannot measure 4 x 6. A geometrical figure having four sides, right angles, and measuring 4 x 6 would be called a rectangle, not a square. And it would have a perimeter of 20. &lt;p&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;The definition of a square is that all four sides are equal.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Therefore your 4x6 is a rectangle, and not a square.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Perimeter would therefore be&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4+6+4+6= 20.&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Total all four sides of the rectangle. &lt;/div&gt;&lt;/div&gt;


How do you float a div?

&lt;div style="float:left;"&gt;content&lt;/div&gt; OR &lt;div style="float:right;"&gt;content&lt;/div&gt; I've attached a link that explains how this works in more detail.


How do you post in blogger using HTML?

&lt;div id="header"&gt; &lt;div id="footer"&gt; &lt;div id="content"&gt; &lt;div id="sidebar"&gt; &lt;div class="post"&gt;


What is a div overlay?

from my limited knowledge a &lt;div&gt; is a tag used to make a "division" in the webpage (like tables but cleaner) the beauty of the &lt;div&gt; is that it doesn't have any visual effects as just &lt;div&gt; so it is perfect to use with css (&lt;div class="name"&gt;} the word "class" would be represented in css as . and name would show as .name meaning you can set the height, width, colour, style, font etc.. for content that appears inside that div.


What is a DIV layout?

Its used for tableless websites. So instead of &lt;table&gt;&lt;tr&gt;&lt;td&gt;, you would use &lt;div&gt; to separate areas along with a style sheet.


How do you hide MySpace terms of use?

table tr td div font {display: none;}table td div {visibility:hidden;}table table td div {visibility:visible;}tr {background:transparent;}table tr td div div {visibility:hidden;display:none;border:0px!important;background-color:transparent;}