A Question About Picture Frames
-
I've seen photography sites where, around each photo, a picture frame is displayed. How is this done? My first guess would be to set the background of each data cell in a table to a transparent frame image, then use an IMG tag to load the picture over it. The picture would have to be resized to be slightly smaller than the frame image, though, and might get screwed up by oddball monitor resolutions. Would that work? What other technique would you suggest? "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
-
I've seen photography sites where, around each photo, a picture frame is displayed. How is this done? My first guess would be to set the background of each data cell in a table to a transparent frame image, then use an IMG tag to load the picture over it. The picture would have to be resized to be slightly smaller than the frame image, though, and might get screwed up by oddball monitor resolutions. Would that work? What other technique would you suggest? "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
Well one drastically different way would be to generate framed images with a program and use the new image on the site. Thus eliminating all HTML, CSS browser compatibility delightfulness. You could use the app dynamically or when the image is added to the site. From the little I know of the .NET framework and ASP.NET I would think that would be fairly easy to do dynamically.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
-
I've seen photography sites where, around each photo, a picture frame is displayed. How is this done? My first guess would be to set the background of each data cell in a table to a transparent frame image, then use an IMG tag to load the picture over it. The picture would have to be resized to be slightly smaller than the frame image, though, and might get screwed up by oddball monitor resolutions. Would that work? What other technique would you suggest? "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
I have a solution that does exactly what you want. goto: http://lab.msdn.microsoft.com/express/vwd/default.aspx[^] download Visual Web Developer Express (it's free) After installing it, goto: File -> New Website Select the "Personal Web Starter Kit" Goto: Debug -> Start Explore the pages and find one with the frame around the photo. (defautl.aspx has one) Open the CSS file that has the style for that image (in the folder: Themes -> White -> Default.css) Look for the style: .photo-frame .topx-- {...} All of the styles that have the .photo-frame will help you. I know this might seem like overkill, but you can see how the people that wrote ASP.NET would put a frame around a photo, and you know that this way of doing it is probably the best. There's a fine line between confidence and arrogance.
-
I have a solution that does exactly what you want. goto: http://lab.msdn.microsoft.com/express/vwd/default.aspx[^] download Visual Web Developer Express (it's free) After installing it, goto: File -> New Website Select the "Personal Web Starter Kit" Goto: Debug -> Start Explore the pages and find one with the frame around the photo. (defautl.aspx has one) Open the CSS file that has the style for that image (in the folder: Themes -> White -> Default.css) Look for the style: .photo-frame .topx-- {...} All of the styles that have the .photo-frame will help you. I know this might seem like overkill, but you can see how the people that wrote ASP.NET would put a frame around a photo, and you know that this way of doing it is probably the best. There's a fine line between confidence and arrogance.
Nice link! Thanks... But do you know if installing it will interfere with the existing .Net 1.1 installation and tools I already have installed. I get nervous about these things, since they almost always break something seriously. "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City