

| View previous topic :: View next topic |
| Author |
Message |
Nahoo
 Joined: 21 May 2006 Posts: 2 Location: Brighton, England
|
Posted: Sat May 27, 2006 10:48 am Post subject: Feed appearance is wrong in Internet Explorer |
|
|
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:
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 |
|
 |
|
 |
Admin Site Admin Joined: 16 May 2006 Posts: 6
|
Posted: Fri Apr 13, 2007 6:19 pm Post subject: |
|
|
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">
';
}
?> |
|
|
 |
|
 |
|
|
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
|
|

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