954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to place media page requests on background color

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>
tefflox
Junior Poster
174 posts since Jul 2006
Reputation Points: 12
Solved Threads: 1
 

can you specify your question please....

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 
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?

tefflox
Junior Poster
174 posts since Jul 2006
Reputation Points: 12
Solved Threads: 1
 

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...

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 
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

tefflox
Junior Poster
174 posts since Jul 2006
Reputation Points: 12
Solved Threads: 1
 

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:

[html][/html]

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.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You