Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-03-28 21:55:00

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Internet Explorer not displaying table properly

GugUser wrote:

You don’t need write special HTML for IE7.

Agreed re: Basic html. And certainly in this use case.

But there are somethings IE 7 doesn’t support, or doesn’t support fully/properly. css display:table only has partial support, for example. IE 8, and IE 9 made notable improvements in supporting broader x/html and css specs.

But again, from the code posted earlier, it it doesn’t look like work-arounds should be necessary.

Last edited by maverick (2011-03-28 21:56:51)

Offline

#14 2011-03-29 01:25:34

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Internet Explorer not displaying table properly

@maverick

HTML and CSS are two different things. In almost all my projects I have to declare in the CSS specific details for the IEs 6-7 or 6-8.

Offline

#15 2011-03-29 01:47:39

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Internet Explorer not displaying table properly

GugUser wrote:

HTML and CSS are two different things.

Point well made.

In almost all my projects I have to declare in the CSS specific details for the IEs 6-7 or 6-8.

Which was the concept I was trying to communicate, in case it helped Kim. :)

Offline

#16 2011-03-29 10:19:50

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Internet Explorer not displaying table properly

@ Els – Yes I had this

<body id="<txp:if_section name="Home">front<txp:else /><txp:section /></txp:if_section>">

@ maverick & Guguser Cheers guys. Will have a go at sorting it all out today.


www.kimstewart.co.uk

Offline

#17 2011-03-29 12:54:35

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Internet Explorer not displaying table properly

Sorted with divs. Thanks again folks!


www.kimstewart.co.uk

Offline

#18 2011-03-29 20:04:27

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Internet Explorer not displaying table properly

You believe in illusions. There is—in this moment, for example and the most important—no opening <body>.

Offline

#19 2011-03-29 20:56:39

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Internet Explorer not displaying table properly

It looks alright in my browsers.


www.kimstewart.co.uk

Offline

#20 2011-03-29 21:17:20

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Internet Explorer not displaying table properly

GugUser wrote:

You believe in illusions. There is—in this moment, for example and the most important—no opening <body>.

No <body> for me either in the source.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#21 2011-03-29 21:25:30

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Internet Explorer not displaying table properly

kstewart wrote:

It looks alright in my browsers.

The opening <body> tag is missing. (The closing tag is there)

Many browsers can likely compensate in rendering – they assume the body tag, but it can cause problems — for example (and I’m speculating), with browsers for the blind and others with disabilities.

It definitely will cause problems validating your code, and can cause other problems with more complex code.

Easy fix though :)

Offline

#22 2011-03-29 21:27:55

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Internet Explorer not displaying table properly

Fixed now, thanks guys!


www.kimstewart.co.uk

Offline

#23 2011-03-29 21:40:05

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Internet Explorer not displaying table properly

Almost :)

html needs to be structured like this:

<document declaration />
<html>
   <head>
      Meta Data stuff, Title, CSS links or statements, etc.
   </head>
   <body>
      Everything else
   </body>
</html>

You page’s code currently is:

</head>

<div class=“slideshow”> <img src=“http://www.fonmedia.co.uk/images/3.png” alt=”“ width=“700” height=“84” /> <img src=“http://www.fonmedia.co.uk/images/4.png” alt=”“ class=“hidden” width=“700” height=“84” /> <img src=“http://www.fonmedia.co.uk/images/5.png” alt=”“ class=“hidden” width=“700” height=“84” />
</div>
<!— head —>

<div id=“head”>

<ul class=“section_list”> <li><a class=“active” href=“http://www.fonmedia.co.uk/index.php”>Home</a></li> <li><a href=“http://www.fonmedia.co.uk/index.php?s=our_work”>Our Work</a></li> <li><a href=“http://www.fonmedia.co.uk/index.php?s=our_people”>Our People</a></li> <li><a href=“http://www.fonmedia.co.uk/index.php?s=contact_us”>Contact Us</a></li>
</ul>

</div>

<body>
<body id=“front”>

To solve your validation issues and possible glitches in rending the page

  • Only use one body tag per html document. The second one, with the id, is the one I’m presuming you want to keep.
  • move the <div class=“slideshow”> and <div id=“head”> blocks of code in between your <body></body> tags.

Last edited by maverick (2011-03-29 21:42:19)

Offline

#24 2011-03-29 22:04:04

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Internet Explorer not displaying table properly

Thanks Maverick! I originally had tried to organise it like that but was having trouble getting the slideshow to work and ended up moving things around a little too much. Cheers!


www.kimstewart.co.uk

Offline

Board footer

Powered by FluxBB