how to position many tags like <p>,<div>,<input type>and etc. in one div.

Recommended Answers

All 2 Replies

I don't know if this is it. Can you give us further explanation? Thanks!

<div>
    <p>Paragraph</p>

    <div>
         <p>Paragraph</p>
    </div>

</div>

divs are basically refered to as DIVISIONS. coding all tags in one div would make it look like this:

<div class="container">
    <p>Text</p>
    <input type="text"/>
</div>

If by positioning them, you mean setting their placements, be easier by setting a class in CSS. For example:

*/main div*/

    display:block;
    width:960px;
    margin:0 auto;
}

/*sub tags within the class*/
.container p{
    font-family:arial;
    font-size:16px;
    position:relative;
    left:20px;
    top:50px;
}

This is somewhat how it would look like.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.