today I found a site with jpg images that by themselves are placed on a strict xhtml source. is it an htaccess function? here is a sample source..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <title>Photo</title>
        <style type="text/css">
            html, body, p
            {
                margin: 0;
                border: 0;
                padding: 0;
                background: #000;
            }
        </style>
    </head>
    <body>
        <p><img src="/./photos/uncategorized/giacomettip6.jpg" alt="Photo" /></p>
    </body>
</html>

can you specify your question please....

can you specify your question please....

Say there is a smaller or thumbnail image, which can be clicked to bring up it's own url.. domain.com/image.jpg, and the above code places it in its own background color. How to do this?

I don't see a question here, either. Are you asking how to create a hyperlink? Display an image? Specify a background color? I keep looking at the code you posted expecting to see something mysterious...

click thumb and large image pop-up, you mean open in new window????

click thumb and large image pop-up, you mean open in new window????

well, yes, the images in question do open in new windows. check out this page and open one of the thumbnails, pull down the source.. (plz if you will) http://www.thezone.blogs.com/flotsam/

that's what i'm trying to do, or maybe not in a new window, but still do that, just get a dark backroung for the plain /.../media.image pages

thanks for helping

Background colors are specified with the "background" CSS property.

If you want to display an image on a "black" page, you could use a style declaration for the page like this:

<style type="text/css">
html, body
{ 
   background: #000000;
}
</style>

All they are doing is opening a window with a black background, the exact same size as the image that will be loaded.

Since the image takes a bit of time to load, you see the black window first as the browser loads the image.

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.