Give help. Get help.

  • # March 28, 2009 at 1:29 pm

    Hi! Forgive me, I am a relative CSS newbie. I have a div that is floated to the right with another div (main info) I’d like to wrap around the div column to the right. It looks fine in Safari/Firefox on the Mac, but it doesn’t work for IE (v. 7) on the PC. All the info I want to wrap around the left column just moves to the bottom of the column and leave a huge white gap to the left of the column. I’m attaching a screenshot from Safari…this is how I want it to look…[attachment=0]Picture 3.png[/attachment]except for the margin issue to the left which brings me to another issue. How do I fix that margin issue? I’ve been screwing around with this for a couple days and now I feel I have messed up a few things. Here’s the html and css:

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    Gregory Court Reporting | About


    Depositions • Trials
    Arbitrations • Hearings
    Sworn Statements
    Private Conferences

    Meetings & Conferences
    Board Meetings • Conventions
    Corporate Annual Meetings


    Realtime Reporting
    Video & Audio Transcription
    Teleconference Facilities
    Interpreters & Translators
    Wireless Internet
    Faxes & Photocopiers
    Video Editing/Conversions
    Synchronized Video/Text


    Laura Gregory founded Gregory Court Reporting in 1988 in Naples, Florida, following graduation from court reporting school, two years as a Deputy Official, and several years of freelance court reporting. She capably balanced raising a family with managing her business over many years with the help of dedicated staff and loyal clients.

    Today, Gregory Court Reporting has grown to five conveniently located offices. It is now the largest, most respected, full service court reporting firm in Southwest Florida, serving Collier, Lee and Charlotte Counties, from Marco Island to Port Charlotte.

    Laura Gregory attributes the love and support of her family as paramount to her success in life and in business. Her three children are now grown and are attending college, preparing for their own careers.

    schedule a proceedingGregory Court Reporting is proud to be the agency of choice for most out-of-town attorneys trying cases in Southwest Florida. Our reliable court reporters, accurate transcripts, and professional facilities let you focus on the case, rather than extraneous details.

    NCRA logo
    fl court reporters assn logo

    Expect the best court reporting services from Gregory Court Reporting!

    Home | Services | About | Locations | Contact | Order Transcript | Schedule
    Terms of Use | Privacy Policy
    Copyright ©2009 Gregory Court Reporting. All rights reserved.
    Web site design by

    @charset “UTF-8”;
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #333333;
    margin: 0; /* it’s good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    background-image: url(images/bcknd_800.jpg);
    background-repeat: repeat-y;
    background-position: 50% 0;
    .twoColFixLtHdr #container {
    text-align: left; /* this overrides the text-align: center on the body element. */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 800px;
    .twoColFixLtHdr #header {
    background: #ffffff;
    padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .twoColFixLtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse – an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixLtHdr #sidebar1 {
    float: right; /* since this element is floated, a width must be given */
    width: 227px;
    background-image: url(images/legalpad.jpg);
    background-repeat: no-repeat;
    padding-left: 10px;
    display: inline;
    .twoColFixLtHdr #mainContent {
    margin: 0 250px 0 0; /* the left margin on this div element creates the column down the left side of the page – no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div’s text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 0px 0 30px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    z-index: 1;
    padding-top: 25px;
    }.twoColFixLtHdr #mainContentwrap {
    padding-top: 25px;
    margin-left: 10px;
    padding-left: 30px;
    float: left;
    width: 760px;
    .twoColFixLtHdr #footer {
    padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    .twoColFixLtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse – a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 23px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    font-size: 1px;
    line-height: 0px;
    .mybuggyelement {
    z-index: 1;

    # March 28, 2009 at 1:34 pm

    if it is getting pushed down it more often than not is an overflow problem.

    in your main content div and sidebar div add:

    please in future link to a working test page or use the code tags[ code] [ /code] NOTE: extra space used to show the tag

    # March 28, 2009 at 1:53 pm

    I’ m sorry about that. I didn’t realize there was another way of posting the code. Here is the working url:

    I think the home and "contact pages are displaying fine in IE. It’s the rest of the pages I’m having the issue with.


    # March 28, 2009 at 2:02 pm

    I think I just figured it out. It was the overflow plus I needed to put the sidebar1 div inside the maincontentwrap div.

    Thanks for your help!

    # March 28, 2009 at 2:38 pm

    glad you got it working……

    sorry but I was not going to look through all the code the way it was, I would have prefered to see the page and see it on firebug to work out.

    but normally you should have:
    container div
    main content div /end it //overflow:hidden
    sidebar div / end it //overflow:hidden
    / end container div

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.