Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoreeswar
    • CommentTimeFeb 13th 2008 edited
     permalink
    Hi,
    New to css pls help!

    I have a Div box which holds two Divs inside one for menu, one for content side by side, i wanted to use a color for menu column, problem is menu column and text column doesn't align as per the content! so i have used background image for the Div id #cnt, background appears fine in ie but not in firefox, to make it appear i have to mention height!! pls help me with it! thanks,

    this is what i used,
    CSS

    #cnt {
    padding: 0px
    margin: 0px;
    position: relative;
    width: 770px;
    background-image: url(../images/cntBg.gif);
    background-repeat: repeat-y;
    }
    #NavBar {
    width: 220px;
    height: 300px;
    margin:0;
    padding:0;
    display: inline;
    float: left;
    }

    #textBox {
    display: inline;
    margin:0px;
    padding:0;
    width: 550px;
    height: 300px;
    float: left;
    }

    HTML
    <div id="cnt">
    <div id="sidebar"></div>
    <div id="main"></div>
    </div>
  1.  permalink
    I was a little fuzzy on your problem, so I went ahead and used to code to try and recreate the issue to see if anything stodd out. One I pasted the code into my editor, I realized that there are two elements, #NavBar and #textBox, that are in your css, neither of which appear in your HTML.

    Do you have a link to a live example? If not, you're going to have to clarify the problem and your code.

    Thanks.
    • CommentAuthoreeswar
    • CommentTimeFeb 14th 2008
     permalink
    My bad, to avoid confusion i try to use suitable words for id's, hence i change them in post, but only changed in html!! sorry!

    Here it is again, and the prob is the background of #cnt isnt spreading in Firefox unless i mention some height.

    MY CSS

    #cnt {
    padding: 0px
    margin: 0px;
    position: relative;
    width: 770px;
    background-image: url(../images/cntBg.gif);
    background-repeat: repeat-y;
    }

    #sidebar {
    width: 220px;
    height: 300px;
    margin:0;
    padding:0;
    display: inline;
    float: left;
    }

    #main {
    display: inline;
    margin:0px;
    padding:0;
    width: 550px;
    height: 300px;
    float: left;
    }

    #ftr {
    clear: both;
    padding: 0px
    margin: 0px;
    position: relative;
    width: 770px;
    height: 50px;
    background-image: url(../images/ftrbg.jpg);
    background-repeat: no-repeat;
    }

    My HTML


    <div id="cnt">
    <div id="sidebar"></div>
    <div id="main"> </div>
    </div>
    <div id="ftr"></div>


    Thanks.
    • CommentAuthoreeswar
    • CommentTimeFeb 14th 2008
     permalink
    I found my solution!

    I have used clear: both in footer, instead i have used a new div inside of #cnt Div! now it works fine in FF.

    tnx a lot for your time Authoradjustafresh!
Add your comments
    Username Password
  • Format comments as (Help)