TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-13-2009, 04:53 PM   #1 (permalink)
The Wanderer
 
ebuoe's Avatar
 
Join Date: May 2009
Location: lagos, nigeria
Posts: 13
Thanks: 9
ebuoe is on a distinguished road
Default doctype problem

i have this problem,when i add a doctype statement to my websites,it works well in firefox but it is scattered in IE and opera

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

thanks for your help
ebuoe is offline  
Reply With Quote
Old 07-13-2009, 05:15 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

What do you mean scattered?
__________________

Village Idiot is offline  
Reply With Quote
Old 07-14-2009, 05:40 AM   #3 (permalink)
The Contributor
 
Join Date: Jun 2009
Location: Seattle, WA
Posts: 76
Thanks: 1
rguy84 is on a distinguished road
Default

Are you using xhtml syntax vs html?
__________________
Ryan | Blog | Twitter
Send a message via AIM to rguy84 Send a message via MSN to rguy84 Send a message via Yahoo to rguy84 Send a message via Skype™ to rguy84
rguy84 is offline  
Reply With Quote
Old 07-14-2009, 07:13 AM   #4 (permalink)
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

Quote:
Originally Posted by ebuoe View Post
i have this problem,when i add a doctype statement to my websites,it works well in firefox but it is scattered in IE and opera

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

thanks for your help
I guess your using XHTML, but you didn't really specify what your problem is.

Scatter what? is it your layout?
__________________
Serenity Project - 5% (Layout) - Ongoing....
Project Serenity Free Life!....
zxt3st is offline  
Reply With Quote
Old 07-14-2009, 10:22 AM   #5 (permalink)
The Wanderer
 
ebuoe's Avatar
 
Join Date: May 2009
Location: lagos, nigeria
Posts: 13
Thanks: 9
ebuoe is on a distinguished road
Default

i mean the whole layout is rearange and disfigured terribly,and i am using xhtml ,but why dosen't it affect firefox,what can i do to solve the problem

thanks
ebuoe is offline  
Reply With Quote
Old 07-14-2009, 07:20 PM   #6 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Ah, a classic issue of IE modifying your design settings. Your doing nothing wrong it's just that Internet Explorer has horrible record of not being standards specific (FF isn't either but it's not required for this point).

You will have to create a different style sheet for each browser, everyone has to, sorry.

For a simple fix you could do something like this:
Code:
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="IE-override.css" />
<![endif]--> 
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="IE6-override.css" />
<![endif]-->
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
ebuoe (07-15-2009)
Old 07-15-2009, 06:11 AM   #7 (permalink)
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

Is this solve already? or any other issue regarding this topic? If so, then let me add :)

Quote:
Originally Posted by adamdecaf View Post
Ah, a classic issue of IE modifying your design settings. Your doing nothing wrong it's just that Internet Explorer has horrible record of not being standards specific (FF isn't either but it's not required for this point).

You will have to create a different style sheet for each browser, everyone has to, sorry.

For a simple fix you could do something like this:
Code:
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="IE-override.css" />
<![endif]--> 
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="IE6-override.css" />
<![endif]-->
Yummy! :)

Actually you can do 2 things here:
Quote:
1. Modify your css by using CSS standard specifications which are both supported by FF and IE. Refer here -> http://www.w3.org/Style/CSS/
2. You can create another stylesheet for IE users, the do the implementation above.
You can also refer to google search for your further queries regarding IE bugs on CSS.

IE CSS BUGS

Goodluck!
__________________
Serenity Project - 5% (Layout) - Ongoing....
Project Serenity Free Life!....
zxt3st is offline  
Reply With Quote
The Following User Says Thank You to zxt3st For This Useful Post:
ebuoe (07-15-2009)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stream problem Tanax Advanced PHP Programming 9 06-10-2009 12:33 PM
Huge Session Problem Killswitch General 1 11-17-2008 02:36 AM
A serious curl checkbox problem bedri Advanced PHP Programming 1 05-22-2008 04:25 PM
A bug or a cache problem?! yazid Advanced PHP Programming 0 05-22-2008 08:40 AM
ÅÄÖ (charset=iso-8859-1) problem cthemaaan Advanced PHP Programming 6 03-28-2008 11:08 AM


All times are GMT. The time now is 10:00 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design