A way to generate a background for a linked picture?

  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Oct 30, 2007
  • Posts: 2008
  • Loc: Belgrade, Serbia
  • Status: Offline

Post July 27th, 2009, 2:50 am

Okay, this question is going to sound pretty illiterate but here goes. I'm working on a gallery of thumbnails, and each of the thumbnails links to the full size picture, in the standard
Code: [ Select ]
<a href="images/image.jpg"></a>
way. So obviously the full-size image loads in the top left part of the browser, with a white background. Is there an easy way to make that background a different color? I know I could use some sort of css or js gallery to show the pictures and control a lot more elements that way, but I don't want to use them for this project (well it's not me that doesn't want them, but anyways I can't use a gallery). Can I add a colored background to the images, without actually adding a whole HTML page for each single full-size picture?

Ideas? :D
Eagles may soar in the sky but weasels don't get sucked into jet engines.

celandine designblog
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 27th, 2009, 2:50 am

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post July 27th, 2009, 5:57 am

The area around the image when the URL and mime-type point to an image file (jpg, png, gif, etc) is entirely up to the browser.

Would a Javascript-based solution such as lightbox work for you ?
Strong with this one, the sudo is.
  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Oct 30, 2007
  • Posts: 2008
  • Loc: Belgrade, Serbia
  • Status: Offline

Post July 27th, 2009, 8:21 am

oooo that is so pretty!!! I'll definitely use it for SOMETHING. I'm just not sure it would fit with the style of this particular site.....

in truth, they probably won't mind the white backgrounds, if there's no easy way to change them. I'll offer them the lightbox solution, because frankly I think it's lovely, but I don't think they'll go for it.

Thanks anyways, joe!! :D
Eagles may soar in the sky but weasels don't get sucked into jet engines.

celandine designblog
  • narendras83
  • Newbie
  • Newbie
  • No Avatar
  • Joined: May 28, 2009
  • Posts: 5
  • Status: Offline

Post September 4th, 2009, 12:32 am

Generate background gradient images for css designs with this PHP script. The Gradient Image Generator lets you quickly create gradient images to use in your css designs.

Common uses include for navigation bars, or for adding a gentle fade on your web page background into the actual background color 3/4 or more down the page.

After creating the gradient image, right click on the image, and "save as" to your computer.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 146 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.