Jun 16, 2025
Оfftopic Community
Оfftopic Community
Forums
New posts
Search forums
What's new
Featured content
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
OffTopic Community
Introductions
In Wordpress, how do I introduce a new div?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="john" data-source="post: 2601458" data-attributes="member: 5463"><p>I'm a little confused with your question. But I will try and answer what I think your asking <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />. </p><p></p><p>If you want to add a new div, for content such as text or images or whatever, then this is how.</p><p></p><p>html code:</p><p></p><p><div id="newdiv"><img src="images/newimage.jpg" alt=" " /></div></p><p></p><p>CSS code:</p><p>div#newdiv {</p><p>width:100%;</p><p>height:50px;</p><p>background:#000000;</p><p>}</p><p></p><p>This will make your div 100% the width of where it is located in. with a height of 50 pixels and a black background. You can edit your div using the CSS code the size and color etc. Also margins and paddings.</p><p></p><p>It would be helpful if we could see your site and where you wanted the div tag. </p><p></p><p>As far as the html code goes, just place it where you want the div box to be located. In your case after your navigation links and before the page content. </p><p></p><p>If you have more questions just email me.</p></blockquote><p></p>
[QUOTE="john, post: 2601458, member: 5463"] I'm a little confused with your question. But I will try and answer what I think your asking :P. If you want to add a new div, for content such as text or images or whatever, then this is how. html code: <div id="newdiv"><img src="images/newimage.jpg" alt=" " /></div> CSS code: div#newdiv { width:100%; height:50px; background:#000000; } This will make your div 100% the width of where it is located in. with a height of 50 pixels and a black background. You can edit your div using the CSS code the size and color etc. Also margins and paddings. It would be helpful if we could see your site and where you wanted the div tag. As far as the html code goes, just place it where you want the div box to be located. In your case after your navigation links and before the page content. If you have more questions just email me. [/QUOTE]
Insert quotes…
Name
Verification
Please enable JavaScript to continue.
Loading…
Post reply
Top