This topic is locked

Color of Edit and View links on list page

8/11/2006 11:31:21 AM
PHPRunner General questions
D
drh author

Hi all,
Does anyone know where the Edit and View links on the List page get their color setting? I would have thought it would be in the include/style.css file, however I can't seem to find it in there.
I need to change the color of the links because I have changed the background color of the rows depending on the contents of the record.
I wish some records to stand out so the user notices them and have chose to make the background color of the row red (#333333). this makes it hard to read the Edit and View links. I would like the letters be black (#000000).
Thank you.

Dave

A
amirgulamali 8/11/2006

you can change the colors by using any php editor such as dreamweaver, however this method would be cumbersome if you are talking about 100s of pages.. i changed link color of only 1 of my generated page using dreamweaver... mhhh <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=10352&image=1&table=forumreplies' class='bbcemoticon' alt='<<' />

rjks 8/12/2006

Morning,
I have had a look at my code to see where I can change the link colors, found the code where the link is shown an changed it to.

<font color="#ff0000"><?php echo mlang_message("VIEW");?></font>


In the templates it is more or less the same where VIEW is used put the desired font and color around it.

This will then be generated in all _list files. To vary the colors set a global variable i.e. $linkcolor which can be easily edited to change the color as desired.

<font color="#ff0000">##PLAINMESSAGE(VIEW)##</font></a>


Hope that helps

rjks 8/12/2006

Hallo again,
I was browsing the web and found this Tutorial about links and css, should be just what you need.
CSS and Links
Robert

D
drh author 8/14/2006

Thanks for the responses. I searched for this line in my code:

<font color="#ff0000"><?php echo mlang_message("VIEW");?></font>

but could not find it in the application directory or in the include directory.
However, as soon as I viewed the "CSS and Links" link supplied by Robert, I noticed that A is for links. I then editted my css.style file the very first link color and it worked.
Super! Thanks to all who answered my post.
Dave