hello there please help me im having problem with my css specialy with these codes

body {background: url(./images/bg-body.gif) repeat center;
color: #80662b;
font-family: 'AndikaRegular';
font-size: 14px;
margin: 0;
min-width: 950px;
padding: 0;
overflow:scroll;}

if i put these code separate with my php file it wont work. all images i used was working except the backround. can someone help me please.

Recommended Answers

All 4 Replies

have you tried ../images/bg-body.gif?

if that doesn't solve the problem, you may as well specify what exactly the problem is.

If the image is located in the images folder, one subfolder from the root, then use this...

body {background: url('/images/bg-body.gif') repeat center;}

I dont have any idea how but when i remove the <style type="text/css"></style> tag it work.

If you are using an external style sheet, you do not include the <style> element in that file. You only use the <style> element when including it within your html document.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.