Jump to content

[SOLVED] Links won't render properly


macattack

Recommended Posts

I have written the following PHP code, with a CSS file included in the file "header.php". The background and text render properly, but the links don't. Does anyone have an idea why?

 

<?php
include('includes/functions.php');
define('DIRECTORY_LISTING', '../blogs');

require('header.php');

echo '<a href="index.php?edit=EditIt">Edit/delete current blog entries</a><br>';
echo '<a href="index.php?addnew=Add New">Add new blog entry for today</a><br>';
echo '<a href="index.php?addold="Add Old">Add blog entry for another date</a><br>';

require('footer.html');

?>

 

body {background-color: navy}
h1 {text-align: center; color: white; font-family: comic sans ms; font-size: 200%}
h2 {text-align: left; color: white; font-family: comic sans ms; font-size: 100%}
p1 {text-align: left; color: white; font-family: comic sans ms; font-size: 100%}
t1 {align: center}
f1 {font-size: 10px; font-family: comic sans ms; text-align: center; color: white}
a:link {text-color: red; decoration: none}
a:visited {text-color: red; decoration: none}
a:active {text-color: red; decoration: none}
a:hover {text-color: red; decoration: underline overline}

 

I have tested in both Safari and Firefox to no avail.

 

Link to comment
https://forums.phpfreaks.com/topic/106041-solved-links-wont-render-properly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.