Title: codeandcolour's Replies | WordPress.org

---

# codeandcolour

  [  ](https://wordpress.org/support/users/codeandcolour/)

 *   [Profile](https://wordpress.org/support/users/codeandcolour/)
 *   [Topics Started](https://wordpress.org/support/users/codeandcolour/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codeandcolour/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codeandcolour/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codeandcolour/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codeandcolour/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codeandcolour/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Struggling with third loop.](https://wordpress.org/support/topic/struggling-with-third-loop/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/struggling-with-third-loop/#post-1381728)
 * Thanks alchymyth your a legend! I hadn’t come across wp_reset_query before now
   and it was exactly what I was after. My homepage now works exactly how I want
   it to. I was thinking more along the lines of rewind_posts myself but doubted
   that it would have worked.
 * Problem resolved.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Struggling with third loop.](https://wordpress.org/support/topic/struggling-with-third-loop/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/struggling-with-third-loop/#post-1381710)
 * Ahh thats awesome thanks for pointing that out. I’m still getting used to the
   coding conventions of WordPress/PHP.
 * The only Issue I am now left with is that this first loop seems to override my
   news loop in the content section below. Is there a way to stop this happening
   my making each loop more unique? Would it be worth having a second go at using
   WP_query for my first loop?
 * Thanks alchymyth
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Struggling with third loop.](https://wordpress.org/support/topic/struggling-with-third-loop/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/struggling-with-third-loop/#post-1381701)
 * I am still seeking support on this issue, any guidance on how I can run these
   three loops on the one page is much appreciated.
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Struggling with third loop.](https://wordpress.org/support/topic/struggling-with-third-loop/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/struggling-with-third-loop/#post-1381624)
 * Thanks for the reply kz, however this has not fixed that loop. The link to my
   development page is [here](http://www.codeandcolour.com/development/totalrally_v2/)
 * What is currently happening is that this loop has now broken the two I had working
   previously and now where my news items used to show up in my left column the 
   slider posts now show up to.
 * What is the best way of running three loops to get different different results
   in each?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How do you overlap divs?](https://wordpress.org/support/topic/how-do-you-overlap-divs/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-do-you-overlap-divs/#post-1374655)
 * Ok so it’s taken a lot of figuring out but here is the solution I created, thanks
   again to alchymyth and flamenco for their replies.
 * (Note: This only worked for me as #twitter does not have a background image or
   colour. If those values are set then the effect gets hidden.)
 *     ```
       * {
       	margin: 0px;
       	padding: 0px;
       }
   
       div {
       	display: block;
       }
   
       body {
       	font-size: 81.3%;
       	font-family: Arial, Helvetica, sans-serif;
       	color: #333;
       	line-height: 1.2em;
       	background: #f5f5f5;
       }
   
       #twitter {
       	width: 100%;
       	height: 100px;
       	position: relative;
       	z-index: 2;
       }
   
       #twitter .wrap {
       	background: red;
       	margin-top: 35px;
       }
   
       #footer {
       	width: 100%;
       	height: 400px;
       	background: #708090;
       	position: relative;
       	z-index: 1;
       	margin-top: -30px;
       }
   
       .wrap {
       	margin: 0px auto;
       	width: 960px;
       	height: 100%;
       }
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How do you overlap divs?](https://wordpress.org/support/topic/how-do-you-overlap-divs/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-do-you-overlap-divs/#post-1374615)
 * Can anyone else offer up a suggestion, as I am still looking for a solution.
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How do you overlap divs?](https://wordpress.org/support/topic/how-do-you-overlap-divs/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-do-you-overlap-divs/#post-1374596)
 * alchymyth: Thanks for the link but still having read all that I just can’t get
   my head round the theory of how it would work.
 * If someone could possibly demonstrate a solution and quickly talk through how
   that css achieves the desired effect I would then hopefully be able to understand
   it enough to implement in more than just this one situation.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How do you overlap divs?](https://wordpress.org/support/topic/how-do-you-overlap-divs/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-do-you-overlap-divs/#post-1374509)
 * Thanks for your advice but I am still unable to get the desired result, by using
   negative margins I only seem to be able to pull the #footer up over .wrap which
   visually makes .wrap look smaller in height than it should be.
 * I have uploaded the above code [here](http://www.codeandcolour.com/development/test/overlap.html)
 * along with a jpg image [here](http://www.codeandcolour.com/development/test/overlap.jpg)
   showing what I want to achieve.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Question about the loop?](https://wordpress.org/support/topic/question-about-the-loop-2/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/question-about-the-loop-2/#post-1373004)
 * Thanks for your link I think I can understand this a bit more by reading the 
   info on that page and also at [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   which was linked through from that page.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site running through sub-domain not www prefix](https://wordpress.org/support/topic/site-running-through-sub-domain-not-www-prefix/)
 *  Thread Starter [codeandcolour](https://wordpress.org/support/users/codeandcolour/)
 * (@codeandcolour)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/site-running-through-sub-domain-not-www-prefix/#post-1367533)
 * Many apologies for the late reply, but thank you for your advice. As you can 
   see all content is now running through the root of my site.

Viewing 10 replies - 1 through 10 (of 10 total)