ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello new to CSS and I was trying to practice something as simple as placing the image, I have searched google for hours and my code seems fine just will not place the image. I dont even get a box with the x, nothing. Could someone please tell me where I am wrong?
<html>
<head>
<STYLE type ="text/css">
BODY{
background-image:
url("../images/natesmug.jpeg");
background-repeat:
no-repeat;
background-position:
bottom right;
}
</STYLE>
</BODY>
<title>CSS Practice></title>
</head>
<h1><center><font face="adler" size=""7">Under construction check back soon...</font></center></h1>
<body>
</body>
</html>
//the url("../images/natesmug.jpeg"); works with html...//
no Ive tried in 3 diffrent browsers, with different images, and from different directories. I don't know I'm stumped but its probably something really easy that I just cant see right now. I dont know if I mentioned this but the html section of this works just fine, just not the CSS.
i just tried the version from post #4 and it works fine...
i'm using firefox 0.9.3 on slackware 10.0 right now...
i think you need to check the path to the image...
if the "images" directory is in the same directory as this file, then you need to eliminate the "../" at the start of the path, for example... or perhaps the image name is wrong, like, maybe it's "jpg" and not "jpeg"... i don't know, but i'm almost sure the problem is the path, or maybe the permissions of the images directory are off...
Originally posted by tekmorph you got it...jpg...not jpeg...thanks alot. I knew it was simple.Thanks for spending your valuable time on my post.Thank you very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.