This is a discussion on "IE workaround?" within the Web Page Design section. This forum, and the thread "IE workaround? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
IE workaround?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
IE workaround?
Hi,
I am using following bit of CSS which works in Firefox, Opera body div[align="center"]{ display: none; } It doesnt work in IE, is this because it does not recognise the square[] brackets? And does anyone know a workaround? |
|
|
|
#2
|
|||
|
|||
|
Re: IE workaround?
First, you should stop using HTML attributes such as align="center" and replace them with CSS and classes (or IDs). To centre a <div> horizontally relative to its containing element, use:
|
![]() |
| Tags |
| ie workaround |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| workaround for includes? | alexgeek | PHP Forum | 4 | Sep 15th, 2007 11:27 |
| A workaround for a problem you might not know you have...yet | Skelbo | Web Page Design | 1 | Jul 13th, 2007 18:00 |