Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    3
    Member #
    14655
    Very VERY new to Dreamweaver and all this stuff so this MIGHT be a really stupid post....but I need help

    Basically, I want the hyperlinks on my page to remain their allocated colour (im from the UK so it IS colour for me... :P).

    I have tried

    a:link {
    text-decoration: none;
    }
    a:hover {
    text-decoration: underline;
    }

    in my CSS but this just makes the hyperlink the default Blue.

    I realise typing in a colour into text-decoration would change this, but the links are not ALL the same colour, therefore I want them to remain the colour they have been allocated.

    This is my website atm (only just started, its PHP+MySQL) http://www.itsgameover.co.uk/index1.php

    I want all those "pHanQ vs ..." to be hyperlinks and remain Black, and the scores to be hyperlinks (to the same place) but remain their respective colours.

    There must be an easy way to do this...anyone? Thx! <3

  2.  

  3. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    3
    Member #
    14654
    Try going to Modify/Page Properties and change the link colors in there. They might be set to the blue in there. You should be able to highlight the text and change the color in the Properties Inspector as well. Hope this helps!

  4. #3
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    If you want the links to stay the same colour as they are just now, you will have to define a style rule for a:visited.

    http://www.echoecho.com/csslinks.htm

  5. #4
    Junior Member
    Join Date
    Jan 2007
    Posts
    3
    Member #
    14655
    It isnt set to blue, its set to "Default Color" which in this case is obviously blue. And most of the text is echoed within PHP meaning highlighting isnt really an option, unless you know the code that it then adds to the hyperlink that has been highlighted?

  6. #5
    Junior Member
    Join Date
    Jan 2007
    Posts
    3
    Member #
    14655
    The <span> thing seems useful...

    Although its all quite rapped in PHP atm, would take a while to fix up :P

    <?php
    echo '<td width="36" background="phanq_images/phanq_menulinkleftmiddleedg.gif"';
    $sqlresultsquery = "SELECT * FROM Results ORDER BY MatchID DESC LIMIT 0, 1"; //Select all Results
    $recordset = mysql_query($sqlresultsquery); //Run the query
    $resultsarray = mysql_fetch_array($recordset);
    if($resultsarray[Phanq_Score] > $resultsarray[Op_Score])
    {
    echo ' class="Menu_Score_Win">';
    }
    else
    {
    if($resultsarray[Phanq_Score] == $resultsarray[Op_Score])
    {
    echo ' class="Menu_Score_Draw">';
    }
    else
    {
    echo ' class="Menu_Score_Lose">';
    }
    }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com