Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Two background images, one not appearing

    Right now I have a container BG (a gradient) then a two column fixed width and I can get the one BG to appear in the left, but the right will not appear.

    Heres the code:

    Code:
    #contentcontain {
     width:100%;
     top:0px;
     height:276px;
     background-color:#233545;
     background-image:url(images/contentgradbg.jpg);
     background-repeat:repeat-x;
     background-position:top;
     margin:auto;
     }
    #menuleft {
    	width:347px;
    	height:276px;
    	background-image:url(images/menubg.png);
    	background-repeat:repeat-y;
    	float:left;
    	text-align:center;
    }
    #menuleft ul { 
    	list-style-type: none;
    	margin: 0;
    	padding: 0;
    }
    #maincontentright {
    	width:653px;
    	height:276px;
    	float:right;
    	background-image:url(images/contentbg.png);
    }
    And the actual HTML on the index page:

    Code:
    <div id="contentcontain">
    <div id="content">
    <div id="menuleft">
    <ul><li>Home</li>
    <li>Home</li>
    <li>Home</li>
    <li>Homeeee</li>
    <li>Home</li></ul>
    </div>
    <div id="mainconentright">
    </div>
    </div>
    </div>
    Thanks

  • #2
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, I want to clarify 'contentbg.png' is what I can not get to appear.

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Check .. there is typo in your codes

    CSS
    Code:
    #maincontentright {
    HTML

    Code:
    <div id="mainconentright">

  • #4
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Haha wow this whole time I spent and its a typo, thanks man.


  •  

    Posting Permissions

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