CSS Strange Problem |
CSS Strange Problem |
Dec 4 2009, 06:36 AM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 1 Joined: Dec 2009 Member No: 754,358 |
Hi guys,i've done a portfolio but i've a problem with the css. Practically, if i use the css edit in Web Developer the CSS work great! But if i load the page normally it doesn't.
I also made two new index.html e primary.css with basic code,and it makes the same problem. So,the html is : CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="css/primary.css" rel="stylesheet" type="text/css" /> </head> <body> <p>BLABLABLABLA </p> </body> </html> And the css: CODE body { background-color: #4B2017; background-image: url(images/bg.jpeg); } But the bg.jpeg works only with web developer css edit open,without web developer it doesn't work.. What is it? This post has been edited by Cristy: Dec 5 2009, 08:12 PM
Reason for edit: Edited with code tags. - Cristy
|
|
|
|
![]() |
Dec 4 2009, 04:29 PM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
Do you mean it's not working online? Have you uploaded the bg.jpeg image to the images directory?
|
|
|
|
Dec 4 2009, 04:49 PM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
And is this on a server or local? You have to make sure everything is pointing to the correct place.
|
|
|
|
Dec 4 2009, 05:08 PM
Post
#4
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
^ Local can still be a server (mine is). Online is a huge difference.
|
|
|
|
Dec 4 2009, 05:23 PM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
I wasn't just saying that incase, this person thought, it was online when it was actually offline.
|
|
|
|
Dec 4 2009, 09:09 PM
Post
#6
|
|
![]() i like boobies, yes I do. I like boobies - how 'bout you? ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 620 Joined: Jun 2008 Member No: 662,457 |
Possibly (un)related note, you should definitely always specify where the bg image is to be placed, repeat(-x/-y) or no-repeat, and fixed or scrolling. Foxy doesn't like it when you don't tell it that stuff.
But for the most part, what they^ said. |
|
|
|
![]() ![]() |