...

View Full Version : stylesheet help, not functioning



amcf1992
09-19-2011, 07:04 PM
I don't know whats wrong, not displaying images at all

CSS CODE

p.accountsummary {
background-image: url('../includes/image/accountsummary.jp…
position: relative;
top: 50 px;
}

#header {
background-image: url('../includes/image/header.jpg');
width: 1000px;
height: 45 px;


}


HTML CODE


<div id="header">

</div>

<div class= "account summary">
</div>

teedoff
09-19-2011, 07:36 PM
Do you really have a space in your div class name?

<div class= "account summary">

You dont have one in your stylerule.

amcf1992
09-19-2011, 09:37 PM
sorry that was just a typo in the post, my actual code does not have a space. Any other ideas as to why this is not working?

resdog
09-19-2011, 09:50 PM
Your height's have spaces in them. They should not.
Your accountsummary id is assigned to a div, not a p as in your code.

Is the CSS file embedded in the html file itself, or linked to it?
If linked, is it in the same folder?
What is the folder structure of your site? you are using relative links to find the images, so in your css, you are saying "Go up one folder level, then go to the includes folder etc.". If you CSS file is in the same folder as the includes folder is, then you don't need the "../" part.

amcf1992
09-20-2011, 03:03 AM
ok i did the necessary changes still not working
File paths:

development.mysite.com/load/include/css/style.css
development.mysite.com/load/account.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum