|
|
 |
RE: FN-FORUM: OT smallest website ever?
date posted 18th January 2007 13:28
Thanks, I'll have a look at that, I've just started doing pure CSS layout
for a website I'm doing at the moment.
By the way, you've got a rather expensive space after "background:" in that
HTML :)
Phil
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Tony
Crockford
Sent: 18 January 2007 14:04
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: OT smallest website ever?
[EMAIL REMOVED] wrote:
> Although I did blatantly rip off your code Tony - I like the use of the
> 'background' tag though, I've not seen that before.
>
it's not the most "semantic" way of doing it, but it guarantees a
vertical and horizontally centered image in a box.
I use it a lot for displaying odd sized images in galleries etc. - if
you make your container a fixed size and slap the image in as a
background, centered, with 50% 50% or center center it will show the
central portion of the image only as big as the box...
;o)
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|