Click to See Complete Forum and Search --> : CSS Graphics Not Showing


ivanjay205
08-04-2008, 04:54 PM
So this one is really stumping me.

I am using Visual Studio 2008 to develop a corporate intranet.
I created a background image as a jpg and placed it in the appropriate directly. I made a css page which has the body background the image I want to use so it will show up on all pages.

I added div tags to separate areas on the page, and inserted a table into the main content section to start developing that portion.

Everything shows up fine in the development design view. I see the graphics, table, text, etc.

When I run the application ie shows a blank page, I see nothing.

I am developing in aspx but Visual Studio 2008 should have no issues with that.... Or should I just make it in html page? For right now it does not need to be aspx but for long term development it will ultimately need to become.

Help would be GREATLY appreciated

-Ivan

I have attached the css page and my code file.

ray326
08-05-2008, 09:21 AM
The back end technology doesn't matter, just the generated HTML. The most common reasons for a background image not showing are invalid links and containers with no height, typically float clearing.

eloquentBohemia
08-05-2008, 05:38 PM
Your CSS needs this:

{
background-image: url('Images/background.jpg');
background-position: top left;
background-repeat: no-repeat;
background-attachment: fixed;
font-family: "Garamond Premr Pro Smbd";
color: #FFFFFF;
font-size: large;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
height: auto;
width: auto;
}