WEB aarrrggg v.freakin divs

Discussion in 'OT Technology' started by c.a, Oct 20, 2007.

  1. c.a

    c.a New Member

    Joined:
    Jan 24, 2006
    Messages:
    1,117
    Likes Received:
    0
    I working on a new design for my personal site and one of the elements is not coming out right. I've been staring at the chunk of code for like an hour and its got me stumped.

    All I want is the div "right" to be to next to the content. Not that hard.. something is wrong with my div parenting..

    here's the link

    anyone know how to fix it?
     
  2. Ractoon

    Ractoon Shibumi in progress...

    Joined:
    Apr 30, 2001
    Messages:
    256
    Likes Received:
    0
    Move your #right div under your h3 in your #content block

    Code:
     <div id="content">
      <!-- B E G I N   C O N T E N T-->
      <h3>Welcome</h3>
    
       [COLOR="Red"]<div id="right">
        <h4>News:</h4>
        <h4>Featured Design:</h4>
        </div>[/COLOR]
      
    Vestibulum id urna. Vestibulum quis turpis. Phasellus est. Praesent massa sapien, dignissim ut, posuere sit amet, tempor eu, massa. Aenean ac nunc quis lectus consequat auctor. Phasellus massa mauris, posuere quis, sodales et, rutrum blandit, diam. Phasellus vitae nibh.
    <br>
    <br>* Curabitur id nisl eget lacus accumsan convallis.
    <br>* Morbi eleifend euismod tortor.
    <br>* Cras varius pharetra lacus.
    <br>* Praesent ornare metus viverra enim.
    <br>* Sed laoreet tortor non nisi adipiscing tempor.
    <br>* Vivamus rutrum lobortis magna.
    <br>* Nunc tristique sodales mi.
    
    <br><br><br><br><br><br><br><br><br><br>
     </div>
    
    All those <br> tags were pushing it down the page.
     
  3. c.a

    c.a New Member

    Joined:
    Jan 24, 2006
    Messages:
    1,117
    Likes Received:
    0
    thanks
     
  4. Mugen Yarrr

    Mugen Yarrr New Member

    Joined:
    Jun 21, 2007
    Messages:
    1,143
    Likes Received:
    0
    Location:
    Ruston, LA
    Why are you using <br> tags anyway? Set that up in a list and use padding or margin to get the extra space.
     
  5. drpepper

    drpepper Active Member

    Joined:
    Nov 13, 2006
    Messages:
    38,076
    Likes Received:
    2
    Location:
    San Antonio
    negro, limit the width of the content div. that should give the 'right' div enough room to sit to the right.
     
  6. c.a

    c.a New Member

    Joined:
    Jan 24, 2006
    Messages:
    1,117
    Likes Received:
    0
    the < br >s were just a quick way to set up the height, but they're gone now.
     
  7. c.a

    c.a New Member

    Joined:
    Jan 24, 2006
    Messages:
    1,117
    Likes Received:
    0
    actually that entire design was scraped and I'm on a new one haha
     

Share This Page