hi again,
i use HTML embedded in PHP. i would like to use CSS references in my script...but the normal way.....like used in HTML is not working...here is a section of my code...
echo"<html><HEAD><LINK REL=StyleSheet HREF=sitestyle.css TYPE=css></HEAD> .................
..........<TR><TD CLASS=labelbg><SPAN CLASS=label>Institue Name- </SPAN></TD><TD>$sessInstName</TD>";
an html page using the same code is working fine...... please help me out...
CSS in PHP - Howto ?
Moderator: General Moderators
open the requested document in your browser's source view.
If it exactly looks like the working static html-document, it's the same for the browser.
btw: you can enter and leave php blocks (almost) as you want. Everything outside a php-block is sent "as is" to the client.
e.g.
If it exactly looks like the working static html-document, it's the same for the browser.
btw: you can enter and leave php blocks (almost) as you want. Everything outside a php-block is sent "as is" to the client.
e.g.
Code: Select all
<?php
// some php-code here
?>
<html>
<head>
<link rel="StyleSheet" href="sitestyle.css" type="css">
</head>
<body>
.................
..........
<TR>
<TD CLASS="labelbg">
<SPAN CLASS="label">Institue Name-</SPAN>
</TD>
<TD>
<?php echo $sessInstName; ?>
</TD>
...this works too.
Code: Select all
<?php
// some php-code here
?>
<html>
<head>
<link rel="StyleSheet" href="sitestyle.css" type="css">
</head>
<body>
.................
..........
<TR>
<TD CLASS="labelbg">
<SPAN CLASS="label">Institue Name-</SPAN>
</TD>
<TD>
<?=$sessInstName?>
</TD>
...- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK