SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30
  1. #26
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,802
    Mentioned
    158 Post(s)
    Tagged
    4 Thread(s)
    Hi,

    You can't really float something under something else without it affecting other things around it. You can use negative margins and z-index to shift the float around but that usually means working within a predefined set of dimensions so that you know how much to move it by.

    I'm not sure where the question is leading exactly so it may be better if you knock up a small demo and explain what you need.

  2. #27
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    here i made it. i hope this gives u idea. its like 3 divs r floating but i want one div to float right side and be visible between the margins that i left b.w front divs.i hope it make sense now
    All those who wander aren't lost.

  3. #28
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,802
    Mentioned
    158 Post(s)
    Tagged
    4 Thread(s)
    Remind me why you can't simply wrap the three floated elements in a div and apply the background image to the parent div? It will then be behind all the columns as you wanted.

  4. #29
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    suppose i have this xhtml
    Code HTML4Strict:
    <div class="wrapper">
      <div class="col1">
            <div class="col2">
                 <div class="col3">
     
                 </div>
            </div>
      </div>
    </div>
    in the diagram i made. i want the image to be background which floats behind col3 and col 2. your saying make it background of wrapper div. from what i know. i can't make the background float behind col2 and col3.
    All those who wander aren't lost.

  5. #30
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Paul was talking about this sort of markup.

    <wrapper>
    <div1></div1>
    <div2></div2>
    <div3></div3>
    </wrapper>
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •