Hi, The code below works fine. When the page is displayed in the browser there is a split second where the page is displayed without the css effects,and then its displayed properly. Does anyone know what could be causing that short delay? Thanks. <?php session_name('f1'); session_start(); ob_start(); // Authorization check if (!isset($_SESSION['user'])) { $redirect_url = "access_denied.html"; header("Location: $redirect_url"); } ob_end_flush; ?> <html> <head> <title>page1</title> <style type="text/css" media="all">@import "layout2.css";</style> </head> <body><p class="first"><?php echo 'Hello ' . $_SESSION['user'];?></p> <div id="Header"><a href="">My Account</a> <a href="">Profile</a> <a href="">settings</a> <a href="">Contact</a> <a href="">Resources</a> <a href="">Help</a> <a href="">Log out</a></div> <p class="second">Welcome to the My Account page. The only way you can access this page is if you are <br> a registered user who has activated there account.</p> </body></html>
I think I solved the problem replaced <style type="text/css" media="all">@import "layout2.css";</style> with <link href="layout2.css" rel="stylesheet" type="text/css" />