Log in to check your private messages
Feed appearance is wrong in Internet Explorer

 
Post new topic   Reply to topic    Main » Feed Support
View previous topic :: View next topic  
Author Message
Nahoo

Joined: 21 May 2006
Posts: 2
Location: Brighton, England

PostPosted: Sat May 27, 2006 10:48 am    Post subject: Feed appearance is wrong in Internet Explorer Reply with quote
If your Sudoku Feed appears to the left of the page (when it should be centred), the Sudoku numbers go onto a new line and the banner doesn't fit the grid, then the HTML page is not reading the CSS correctly.



The page requires a document type definition to correct this:

Insert:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Before:
Code:
<html>

Example:
Code:
<?php include("includes/session.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

This step is not always required if you have a recent document type already running.
_________________
sudokusyndication.com
View user's profile Send private message Visit poster's website
Admin
Site Admin

Joined: 16 May 2006
Posts: 6

PostPosted: Fri Apr 13, 2007 6:19 pm    Post subject: Reply with quote
If you want to fix IE7 viewing problems, please create a new stylesheet as follows:

Code:
 /* More styles at: http://sudokufeed.com
    Copyright: sudokufeed.com */

 /* This is a patch for IE7 to sort out the cell appearance  */
td.sudoku_cell, td.sudoku_cell_fixed, input.sudoku_cell,span.sudoku_cell, span.sudoku_cell_fixed {
   background-color: #FFFFFF;
   min-height: 18px;
   height: 18px;
}


then call it: sudoku-feed-ie7-style.css

Now add this to the main Sudoku page...

Code:
<?php
if (ereg("MSIE ([789]\.[0-9])", $_SERVER['HTTP_USER_AGENT']) or ereg("Safari", $_SERVER['HTTP_USER_AGENT']))
{
   echo '<link href="/styles/sudoku-feed-ie7-style.css" rel="stylesheet" type="text/css">
';
}
?>
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Main » Feed Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
phpBB© 2006 phpBBGroup. Xbox by Scott Stubblefield

Want your own Sudoku feed direct to your website? We offer 10 daily Sudoku for just £20/€30/$36 a month.