Re: [WSG] snug a border around diff sized pix

2005-11-16 Thread Joseph R. B. Taylor
I would use a selector to apply the border to the image itself, rather than the div. Joe Taylor http://sitesbyjoe.com csslist wrote: I have a div that shows phots dynamically that are different sizes and would like to throw a 1px border aound them, I can't seem to get them to hug the photo,

Re: [WSG] snug a border around diff sized pix

2005-11-16 Thread Tom Livingston
On Wed, 16 Nov 2005 01:00:03 -0500, Paul Noone [EMAIL PROTECTED] wrote: Add a 1px border to either a or img tags within the DIV's #class. Just out of curiosity, why would a div not be the same size (or hugging) the image inside it if it has no styling of it's own? Box model issues? --

Re: [WSG] snug a border around diff sized pix

2005-11-16 Thread Bert Doorn
Tom Livingston wrote: Just out of curiosity, why would a div not be the same size (or hugging) the image inside it if it has no styling of it's own? Box model issues? I may be mistaken, but... A div is a block level element by default. If it has no styling of its own, its width should be

Re: [WSG] snug a border around diff sized pix

2005-11-16 Thread Tom Livingston
On Wed, 16 Nov 2005 09:19:45 -0500, Bert Doorn [EMAIL PROTECTED] wrote: A div is a block level element by default. If it has no styling of its own, its width should be 100% of its parent's inner width. If true, display:inline (plus positioning styles - on container or what have you) would

Re: [WSG] snug a border around diff sized pix

2005-11-16 Thread Tom Livingston
On Wed, 16 Nov 2005 14:39:23 -0500, Christian Montoya [EMAIL PROTECTED] wrote: That's why the safest move is to apply the border to the image. Agreed, just curious. Thanks for playing along. ;-) -- Tom Livingston Senior Multimedia Artist Media Logic www.mlinc.com Using Opera's

RE: [WSG] snug a border around diff sized pix

2005-11-16 Thread Paul Noone
Hey, we're all here to be entertained. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Livingston Sent: Thursday, 17 November 2005 7:22 AM To: wsg@webstandardsgroup.org Subject: Re: [WSG] snug a border around diff sized pix On Wed, 16 Nov 2005 14:39

[WSG] snug a border around diff sized pix

2005-11-15 Thread csslist
I have a div that shows phots dynamically that are different sizes and would like to throw a 1px border aound them, I can't seem to get them to hug the photo, anyone got any good tricks for this?tia

RE: [WSG] snug a border around diff sized pix

2005-11-15 Thread Paul Noone
Add a 1px border to either a or img tags within the DIV's #class. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of csslistSent: Wednesday, 16 November 2005 4:45 PMTo: wsg@webstandardsgroup.orgSubject: [WSG] snug a border around diff sized pix I have a div that shows phots

Re: [WSG] snug a border around diff sized pix

2005-11-15 Thread adam reitsma
Have you tried using CSS to put a border directly around the image itself?for example, if your html is like this:div class=photoimg src="" alt=me at the beach/div then your css could be as follows:.photo img { border: 2px solid pink; }Good luck!On 11/16/05, csslist [EMAIL PROTECTED] wrote:I have

RE: [WSG] snug a border around diff sized pix

2005-11-15 Thread csslist
yup forgot bout those, thanks :)From: "Paul Noone" [EMAIL PROTECTED]Sent: Wednesday, November 16, 2005 1:05 AMTo: wsg@webstandardsgroup.orgSubject: RE: [WSG] snug a border around diff sized pix Add a 1px border to either a or img tags within the DIV's #class. From: [EMAIL PROTECTE