Contents Container Background Image not displaying in browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VLJones68
    New Member
    • May 2010
    • 3

    Contents Container Background Image not displaying in browser

    I am using Visual Studio 2008 to create a vb.net webite and I have created a three column content container however the background image will not display in browser (I have only tested on IE and Firefox). The CSS below actually displays the background image in design view of Visual Studio. I have tried every variation on the path I can think of the get it to display.

    Any assistance would be welcomed and appreciated.

    Code:
    #content-container-BPK-3column 
    {
        background:url('/PublicPages/images/bg-three-column-main.png') repeat-y;
    	margin-top:3px;
    	margin-left:auto;
    	margin-right:auto;
    	padding:15px;
    	width:728px;
    	border:1px solid #818181;
    	position:relative;
    	height: Auto;
    }
    	
    #content-main-BPK-3column 
    {
    	width:348px;
    	float:left;
    	text-align: justify;
        height: auto;
    }
    	
    #content-side2-BPK-3column {
    	float:right;
        height: 460px;
        width: 162px;
    }
    
    #content-side1-BPK-3column {
    	float:left;
        height: auto;
        text-align: left;
        width: 190px;
    }
    Last edited by Dormilich; May 11 '10, 06:30 AM. Reason: Please use [code] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I think the problem is how browsers read the image URL. relative file paths are followed from the directory the CSS resides in. I’m not sure, though, how your current path is read.

    Comment

    • Sunil Dhanerwal
      New Member
      • Sep 2010
      • 2

      #3
      the same problem is happened with me and i did not found any reason.but if we try to think something,the problem is not of browser but it's machine specific.
      when i run the same application on another machine i was little surprised to same that same browser is displaying all images.
      if you found any reason why the browser is not able to display images plz post the reply
      Last edited by Dormilich; Sep 19 '10, 07:44 PM. Reason: removed email address (spam counter measure)

      Comment

      • Sunil Dhanerwal
        New Member
        • Sep 2010
        • 2

        #4
        hi,i am2010 passed out and have a good knowledge of designing web application in asp.net.but i am little bit weak in designing the database.so,can you please suggest me some tips and traps of designing database.
        or you can simple tell me,what's your view while designing the database?what should i need to care while designing the database

        Comment

        Working...