Re: [css-d] center an image horizontally inside an overflow: hidden

2008-04-30 Thread Martin Sammtleben
At 14:35 -0400 30/4/08, S. Woodside wrote: >Thanks for the link. I tried using background-image center center -- >unfortunately this method doesn't meet my second criteria which is >that the image be scaled to fit vertically. There does not appear to >be any way to scale the image when using bac

Re: [css-d] center an image horizontally inside an overflow: hidden

2008-04-30 Thread Martin Sammtleben
At 01:47 -0400 30/4/08, S. Woodside wrote: >I have a div absolutely positioned with overflow: hidden, and I have >an image, of unknown pixel size, displayed inside it. I wish for the >image to be "cropped" on the left and right, and sized to fit >vertically. A key element here is that I will not

Re: [css-d] Drop-Down Menu In Table?

2008-04-18 Thread Martin Sammtleben
At 7:57 -0500 18.4.2008, Victor Subervi wrote: >However, now I am perplexed by the problem of how to >get it to work within a table. He says in the note "This one also has problems with IE when used within a table." So you might want to try the more recent version:

Re: [css-d] How do you feed IE versions different css than w3ccompliant browsers?

2008-04-16 Thread Martin Sammtleben
At 10:05 +0100 16/4/08, James Leslie wrote: >Surely you just use a normal stylesheet fed to all browsers and then add >IE conditional comments to sort out issues with the IE versions? > >If you need to put in fixes for all browsers, then surely the original >stylesheet is wrong Exactly what I

Re: [css-d] Centering image h/v in *smaller* div

2008-04-12 Thread Martin Sammtleben
At 16:40 -0500 11/4/08, Benjamin White wrote: >1.) Could you not just render these particular links as block >elements, either by floating them or explicitly declaring display: >block and then setting the background to whatever image you need? >Ideally you would then use the alternate text as the l

Re: [css-d] Centering image h/v in *smaller* div

2008-04-10 Thread Martin Sammtleben
At 10:35 -0600 10/4/08, Lisa Onizuka wrote: >Martin, I'm not sure if you want to bother with any inline css, but you >could achieve it this way: > >style="background:url('dynamically-generated-path.jpg') center center >no-repeat">   Thanks Lisa, I had actually thought of this approach, but the t

Re: [css-d] Centering image h/v in *smaller* div

2008-04-10 Thread Martin Sammtleben
At 15:56 +0200 10/4/08, ilduca69 wrote: >well, the name of the classes must match: > Sorry, that was just a typo in the mail - they actually do match, but no effect. Martin __ css-discuss [EMAIL PROTECTED] http://www.css-discu

[css-d] Centering image h/v in *smaller* div

2008-04-10 Thread Martin Sammtleben
Hi, I use a to display thumbnails in a square box. These thumbnails are of various sizes and aspect ratios (auto-generated by a CMS), but they all exceed the dimensions of the box. Here's the css: div.imagebox { text-align: center; vertical-align: middle; width: 80px;

[css-d] Adjacent sibling selectors not taking - solved!

2008-04-09 Thread Martin Sammtleben
Never mind, the moment I had written it down the solution hit me: what I want is the first child selector! Cheers Martin __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http

Re: [css-d] Adjacent sibling selectors not taking

2008-04-09 Thread Martin Sammtleben
At 1:21 +1000 10.4.2008, Alan Gresley wrote: >But even better. > > >h1:first-child, h2:first-child, h3:first-child { >margin-top: 0em; >} Excellent! Thank you so much! It's been a great relief to be able to use these exciting selectors now that IE7 finally supports them. Cheers Marti

[css-d] Adjacent sibling selectors not taking

2008-04-09 Thread Martin Sammtleben
Hi everyone, I use the general selector to zero my paddings and margins. I then add in some defaults for common elements: p, h1, h2, h3 { margin-top: 0.5em; margin-bottom: 0.5em; } ...and then use adjacent sibling sel. to refine them, which works well: p+h1, p+h2, p+h3 { marg

Re: [css-d] Most popular fonts for browsers

2008-04-08 Thread Martin Sammtleben
At 15:09 +0200, 8/4/08, Cristian Palmas wrote: >Does anybody know about a list of commonly used fonts? Look at the survey results linked at the top of this page: Cheers Martin __ css-