Antwhere but from the root DIRr

Home Forums Older releases 0.9.x Antwhere but from the root DIRr

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1373
    Topshed
    Participant

    Sigh… I have a strange problem, After some time away and an attack on my site, I have repaired the damage apart from One problem.
    I call smartmenus from a simple piece of code from any php script with a CCS header call

    
    <div id='header'>
    <?php  include 'smartmenus/SM-blue.htm';  ?>
    </div>
    

    Which works everywhere apart from index.php in my root dir, and I cannot work out why?

    http://www.britishsteam.com
    shows the problem
    http://www.britishsteam.com/php_gwr/usr_gwr.php
    Show how it works everywhere else

    Please help Topshed

    #1749
    Topshed
    Participant

    C’mon somebody give me a hand here PLEASE

    My Index call is here

    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>British Steam Index</title>
    <meta name="author" content="Roy Vandersteen">
    <link rel="icon" href="myicon.ico">
    <link rel="stylesheet" type="text/css" href="css/menu1.css">
    </head>
    <body>
    <div id='header'>
    <?php
    include 'smartmenus/SM-blue.htm';
    ?>
    </div>
    <div id='main'>
    <br>
      <h2>British Steam Locomotives from the WD GWR LMS LNER</h2>
      <h2>& Southern Railway in Searchable Databases.</h2>
    

    So why does it fail, it’s the same call as the rest of the site

    Cheers Topshed

    #1750
    Topshed
    Participant





    British Steam Index

    #1751
    admin
    Keymaster

    The problem is in the following file:

    http://www.britishsteam.com/css/menu1.css

    1) Remove the width: 1000px; declaration from the following rule:

    li{
    	font-size: 1em;
    	font-weight: normal;
    	margin-left: 10px;
    	text-align: left;
    	float: left;
    	width: 1000px;
    	color: black;
    	background-color: transparent;
    }

    2) Change the selectors of these rules:

    a:link{
    	background-color: #ffffff;
    	color: #0000cd;
    	font-size: 12px;
    	text-align: center;
    	text-decoration: underline;
    }
    
    a:visited{
    	background-color: #ffffff;
    	color: #1e791e;
    	font-size: 12px;
    	text-align: center;
    	text-decoration: underline;
    }

    like this (since they are too generic and affect the links in your menu too):

    #main a:link{
    	background-color: #ffffff;
    	color: #0000cd;
    	font-size: 12px;
    	text-align: center;
    	text-decoration: underline;
    }
    
    #main a:visited{
    	background-color: #ffffff;
    	color: #1e791e;
    	font-size: 12px;
    	text-align: center;
    	text-decoration: underline;
    }

    3) You may want to check your page source in general too. You have 2 nested HTML elements.

    Cheers!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?