SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS help

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS help

    Hello,

    I'm having a css problem with this site and I'm just not seeing what I'm doing wrong.

    The site is http://www.juliannstitick.com/

    There is a right sidebar div and then there is a left-content div that has 4 boxes and blog posts. I had removed some elements and pushed the right side bar up. No problem. There used to be a slider where the text is now and she wants the text there and the slider in the header. Fine.

    So now that the slider is gone I need to move the "left-content' up. But for some reason that I cant figure out the sidebar is pushing the left-content down. The only way I was finally able to get the left-content up was to set a negative top margin.

    That seems wrong to me. So while it looks good now and the client could care less, it's bugging me because it seems wrong.

    Any ideas why the left content is being pushed down?

    Thanks!
    Daniel

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,109
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    After the sidebar you have a clearing div which isn't needed, so just remove this:

    Code:
    <!-- END SIDEBAR -->
    <div style="clear:both;"></div>
    and then you can remove the negative top margin.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


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
  •