Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8047853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:14:13+00:00 2026-06-05T06:14:13+00:00

Consider this HTML: <div id=entry-content> <div id=my-300px-ad>AD CODE HERE</div> <p><img src=file.jpg alt=file /></p> <p>SOME

  • 0

Consider this HTML:

<div id="entry-content">
    <div id="my-300px-ad">AD CODE HERE</div>
    <p><img src="file.jpg" alt="file" /></p>
    <p>SOME TEXT</p>
    <p>SOME MORE TEXT</p>
</div>

Now, consider that the div#my-300px-ad is floating right. Would it be possible for me to have the image in the next paragraph show up before the ad so that the TEXT in its following paragraphs can wrap around the ad?

For example, like this:

Example

Why so…?

The thing is, due to various reasons (including Google) I want to avoid placing an ad in BETWEEN the post’s content.

CSS only

I am sure that something like this would be possible with some JavaScript code. But I am looking for a CSS-based solution only. (Cross-browser compatibility, ≥ IE8)

Please note that ONLY the CSS of div#my-300px-ad can be changed. Nothing else should be touched as this is not a static HTML page, besides they are articles.

PS: It was hard to frame a one-line question for this. Please feel free to edit the question’s title if it can be made more clear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:14:14+00:00Added an answer on June 5, 2026 at 6:14 am

    This is not possible, as stated in these two questions:

    Use CSS to reorder DIVs

    CSS layout, use CSS to reorder DIVs

    Without knowing the height of the element you want to skip, using javascript, or changing the html you cannot reorder elements with css in the way you describe.

    However, as it appears you are making a WordPress theme, it shouldn’t be too difficult to place the ad inside the post and after the image. If you do so, placing the ad inside an aside element should tip off Google that it is not part of the main post.

    Mozilla Developer Network:
    In HTML4, every section is part of the document outline. But documents
    are often not that linear. A document can have special sections
    containing information that is not part of, though it is related to,
    the main flow, like an advertisement block or an explanation box.
    HTML5 introduces the <aside> element allowing such sections to not be
    part of the main outline.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following simple HTML: <div id=navcontainer> <a href=#><img alt= src=Img1.jpg /></a> <a href=#><img
Consider this example: http://jsfiddle.net/treeface/P8JbW/ HTML : <div id=test> <img src=http://ycombinator.com/images/y18.gif /> </div> CSS :
consider this html code <textarea> <object> <embed></embed> <div></div </object> </textarea> If i issue the
Consider this page: http://losthobbit.net/temp/docking.html Here's the HTML: <html> <head> <title></title> </head> <body> <div style=position:
Consider the following example : HTML: <div class=wrapper> <div class=left>Some text here</div><div class=right>Hello Stack
Please, consider this code: <script> $(function(){ $('#clickme').click(function(){ $('#note_pag').html('<div id=note_pag><ul><li><b>1</b></li><li><a href=2>2</a></li></ul></div>'); }); $('#note_pag a').click(function(){ alert($(this).attr('href'));
Consider this code : HTML: <div class='a'>a</div> <div class='b'>b</div> <div id='log'></div> CSS: .a, .b
For the purposes of this question, consider this: <div class=has_transparent_png> <a href=foo.html> <span> <img
Consider the following code : HTML: <div id='button' class='enabled'>Press here</div> <div id='log'></div> CSS: #button
Consider the following code : HTML: <input type='checkbox' /> <div>Click here</div> JS: $(function() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.