Jump to content

Doctype and styles problem.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
I'm currently fixing my website to follow the xhtml standards. But when I add a doctype by using:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

my site lost the styles which is included by this tag:

<link rel='stylesheet' type='text/css' href='/Styles.php'></link>


Does anyone knows what the problem is?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Why is your CSS stylesheet a PHP file? I'm not sure if that matters or not when you change the doctype to strict XHTML. Try changing it to a .css file and see what happens?

#3
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
It's because I want to print out some diferent things depending on some things. But Icould try creating it as a .css file and add the "changing styles" localy in the header.

#4
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
The strange thing is that it works in IE but not in Chrome and FF. But I will test your tip. I haven't had time yet :D

#5
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
It worked Jordan thanks for the help(Now I've made a triple post :P). :D

#6
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Great! I didn't know if that would work or not. :)