> -----Original Message-----
> From: [email protected] [mailto:[email protected]
> discuss.org] On Behalf Of Geoff Lane
> Sent: Saturday, March 26, 2011 11:12 AM
> To: [email protected]
> Subject: Re: [css-d] How to centre a DIV?
> 
> On Saturday, March 26, 2011, 2:00:10 PM, HallMarc Websites wrote:
> 
> > Two things; first please supply us with the URL for the eBay listing
> > and second Have you tried to wrap the div in another div and declared
> > a width in the outer div?
> 
> My thanks to all who've helped. I've now got a few things to try in slow
time,
> for which I'm grateful.
> 
> Marc: Unfortunately, I can't provide the listing URI as my son just dumped
a
> pile of code on me and asked for help. I've checked his current listings
and
> none contain the code we're discussing here.
> 
> Secondly, I haven't tried wrapping one div in another yet, but another
list
> member has suggested that doesn't work in IE9 (to which I don't have
access
> :( ) As much as it grieves me, I suspect that Jukka might be correct and
the
> most reliable might well be the kludge in my OP.
> However, to have some sort of future-proofing, I should probably reinforce
> the deprecated align attribute with some CSS thus:
> 
>   <table align="center" style="margin-left:auto; margin-right:auto;">
>   <tr><td style="width:600px;">
>    -- The running text goes here --
>   </td></tr>
>   </table>
> 
> That said, eBay listings don't last forever and so anything that works now
in all
> common browers will probably be good enough and for most anything else I
> can declare an appropriate doctype to keep the page out of quirks mode!
> 
> Thanks again to all,
> 
> --
> Geoff
> 

Just so you know, that last snippet works in all modes, including Quirks.
Even though <center></center> was deprecated awhile back it is still
supported in the major browsers including the current version of IE 9. 

http://www.w3schools.com/TAGS/tag_center.asp

Thank you,
Marc Hall
HallMarc Websites
610.446.3346
http://www.hallmarcwebsites.com/ 

Spread the word about my services and earn money! 
Contact me for details.




______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to