Re: [css-d] Centering a div with an image

2007-12-21 Thread Jan Erik Moström
Gunlaug Sørtun <[EMAIL PROTECTED]> 07-12-21 14.03 >Not being able to turn W3C's descriptions into something useful, has >nothing whatsoever to do with stupidity on your side :-) >The various IE/win teams have had since 1998 to do that, and still >haven't got it right. Maybe in IE8 - now that they'

Re: [css-d] Centering a div with an image

2007-12-21 Thread Gunlaug Sørtun
Jan Erik Moström wrote: > Gunlaug Sørtun <[EMAIL PROTECTED]> 07-12-21 11.08 >> Try a suitable "shrink to fit" block formatting... >> >> ...directly on the #jem-photobackground instead, and set those >> margins directly on the same as 'ma

Re: [css-d] Centering a div with an image

2007-12-21 Thread Jan Erik Moström
Gunlaug Sørtun <[EMAIL PROTECTED]> 07-12-21 11.08 >It was ... 10 years ago :-) I was afraid of that :D >Try a suitable "shrink to fit" block formatting... > >...directly on the #jem-photobackground instead, and set those margins >directly

Re: [css-d] Centering a div with an image

2007-12-21 Thread Gunlaug Sørtun
Jan Erik Moström wrote: > Of course there is one solution that seems to work fine: > >[...] > But I'm not sure if this is a good solution. It was ... 10 years ago :-) Wrapping elements in tables to achieve a "shrink to fit" effect, is definitely not a good solution in 2007. Try a suitable

Re: [css-d] Centering a div with an image

2007-12-21 Thread Jan Erik Moström
Jan Erik Moström <[EMAIL PROTECTED]> 07-12-20 23.09 >What I've done is this: > > > >src="foto5/2007/2007-05-10_fritids/2007-05-10_09-46-46_549.jpg" >alt="" width="800" height="535" /> >Någon rubrik > >Här kommer nu själva beskrivningen > > > Of course there is one solution that seems to work fin

Re: [css-d] Centering a div with an image

2007-12-20 Thread Gunlaug Sørtun
Jan Erik Moström wrote: > So my question is: Is it possible to center the photobackground > without knowing the size of the image? If so, can anyone please > give me an hint on how to do it? Centering an element is easy enough, but the actual solution depends on whether you want to center only

[css-d] Centering a div with an image

2007-12-20 Thread Jan Erik Moström
OK, this is probably really, really simple but I can't for the life of me figure out how to do it, my only excuse is that I'm no CSS expert. The effect I'm trying to achieve is a photo page. It should have a dark background color, a "photo background" in a lighter color with the image and capt

Re: [css-d] Centering a div

2007-05-11 Thread James Smith
That didn't work, it did introduce a gap between each but didn't centre the images. -Original Message- From: Ricky Zhou [mailto:[EMAIL PROTECTED] Sent: 09 May 2007 22:36 To: James Smith Cc: CSS Discuss Subject: Re: [css-d] Centering a div James Smith wrote: > If you lo

Re: [css-d] Centering a div

2007-05-09 Thread Ricky Zhou
James Smith wrote: > If you look at http://dev.jaysphotography.org.uk/index.cfm/page/images/ you > will see thumbnails at the top of the page. No matter how hard I try I > can't get these to the centre of the page and I have tried all of the normal > tricks. Since the images are floated, it's some

[css-d] Centering a div

2007-05-09 Thread James Smith
If you look at http://dev.jaysphotography.org.uk/index.cfm/page/images/ you will see thumbnails at the top of the page. No matter how hard I try I can't get these to the centre of the page and I have tried all of the normal tricks. What am I doing wrong! I have currently removed all of the centr

Re: [css-d] centering a div that floats above everything

2005-12-10 Thread Christian Montoya
On 12/10/05, Abyss Information <[EMAIL PROTECTED]> wrote: > that didn't work, now its in line with all other elements > and not "above" them, so that it is above it... > > thanks anyway for your help You need to read up more about CSS, because what you are trying to do is not simple. You can't co

Re: [css-d] centering a div that floats above everything

2005-12-10 Thread Christian Montoya
On 12/10/05, Abyss Information <[EMAIL PROTECTED]> wrote: > Hi all > > I am trying to center a div but ontop of another div.. > > here is my code > > > asdfdsafdsfdf > it works in IE giving it centered exactlybut in FF it is on the left > hand side of the page..any suggestions?i tried to float met

[css-d] centering a div that floats above everything

2005-12-10 Thread Abyss Information
Hi all I am trying to center a div but ontop of another div.. here is my code asdfdsafdsfdf it works in IE giving it centered exactlybut in FF it is on the left hand side of the page..any suggestions?i tried to float method but that did not work...it looks worseThanks heaps Abyss __

Re: [css-d] centering a div within a div

2005-08-21 Thread Don Hinshaw
Gregory Charles Rivers wrote: hello everyone. I am trying to create images with captions. I have code that works fine except that I can find no way to centre the div within my container div. any ideas? Gregory, I have used the following successfully. I believe this is what you are trying for.

Re: [css-d] centering a div within a div

2005-08-21 Thread Philip Quanjer
- Original Message - From: "Gregory Charles Rivers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 21, 2005 6:00 PM Subject: [css-d] centering a div within a div hello everyone. I am trying to create images with captions. I have code that wo

[css-d] centering a div within a div

2005-08-21 Thread Gregory Charles Rivers
hello everyone. I am trying to create images with captions. I have code that works fine except that I can find no way to centre the div within my container div. any ideas? div.image_plus_caption { padding: 0; padding-bottom: .8em; border: 2px solid black; margin: 0