|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Can anybody advise me how to make the body tag centre the page in IE8? The
attached code works fine in IE7 and Firefox but displays left aligned in IE8! Many thanks for any assistance that can be offered <div align="center"> <table width="700" border="0" cellpadding="0" cellspacing="0"> |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
This would be the wrong way to center anything on the page, really.
The best way would be to use CSS - <div style="width:700px;margin:0 auto;"> <table style="width:700px adding:0;border:collapse;" cellspacing="0">(inline shown for clarity) -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "ukracer" <webforumsuser@macromedia.com> wrote in message news:g332nj$qae$1@forums.macromedia.com... > Can anybody advise me how to make the body tag centre the page in IE8? The > attached code works fine in IE7 and Firefox but displays left aligned in > IE8! > > > Many thanks for any assistance that can be offered > > <div align="center"> > <table width="700" border="0" cellpadding="0" cellspacing="0"> > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
ukracer wrote:
> Can anybody advise me how to make the body tag centre the page in IE8? The > attached code works fine in IE7 and Firefox but displays left aligned in IE8! > > > Many thanks for any assistance that can be offered > > <div align="center"> > <table width="700" border="0" cellpadding="0" cellspacing="0"> > you don't need a div to cnter a table! <table align="center" width="700" border="0" cellpadding="0" cellspacing="0"> works in all browsers -- seb (@webtrans1.com) high-end web design: http://webtrans1.com Sign-up for a free beta test of SiteLander, an ingenious website-builder: http://webtrans1.com/sitelander/ music: http://myspace.com/popmodelberlin |
|
![]() |
| Outils de la discussion | |
|
|