Difference between revisions of "Css"

From Bashlinux
Jump to: navigation, search
(talk)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
=== How to get webpages compatible across browsers ===
= CSS =
 
== How to get webpages compatible across browsers ==
 
 
It happens that some times CSS has no effect on IE, then the solution is to validate the DOCTYPE at the beginning of the code, either HTML, PHP or any other.
 
It happens that some times CSS has no effect on IE, then the solution is to validate the DOCTYPE at the beginning of the code, either HTML, PHP or any other.
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<pre><nowiki>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
</nowiki></pre>
 
 
   
 
An example of what doesn't work without this tags is the drop-down menus build with pure CSS.
 
An example of what doesn't work without this tags is the drop-down menus build with pure CSS.

Revision as of 01:00, 7 June 2015

How to get webpages compatible across browsers

It happens that some times CSS has no effect on IE, then the solution is to validate the DOCTYPE at the beginning of the code, either HTML, PHP or any other.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

An example of what doesn't work without this tags is the drop-down menus build with pure CSS.