OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
CSS for PHP display of a directory
This page's ID:
29556
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Are you wanting to use the same font and size for the entire document? You have some font tags that you are probably wanting to get rid of right? Just guessing. Let's take this section : [code] while($m<(count($filename))) { echo "<td bgcolor=#C0C0EF width=$namecolumn><a href=\"$filedir".$filename_sorted[$m][1]."\"><font color=#000000>".$filename_sorted[$m][1]."<font></a><br></td>\n"; echo "<td bgcolor=#C0C0EF width=$datecolumn align=center><font color=#000000>"; echo date("m/d/y",$filename_sorted[$m][2])."</font></td>"; echo "<td bgcolor=#C0C0EF width=$sizecolumn align=right><font color=#000000>"; echo $filename_sorted[$m][3]." KB "; echo "</font></td>"; ++$j; if($j == $columns) { echo "</tr><tr>"; $j = 0; } $m++; } [/code] Now for the first part [code] echo "<td bgcolor=#C0C0EF width=$namecolumn><a href=\"$filedir".$filename_sorted[$m][1]."\"><font color=#000000>".$filename_sorted[$m][1]."<font></a><br></td>\n"; [/code] Give the td a class name, say "filename_sorted" and get rid of the <font> tag So now it would be : [code] echo "<td bgcolor=#C0C0EF width=$namecolumn class="filename_sorted"> <a href=\"$filedir".$filename_sorted[$m][1]."\">".$filename_sorted[$m][1]."</a> <br> </td>\n"; [/code] Then in the <head> tag you would add a <style> section. [code] <head> <style> .filename_sorted a{ color:#000; } </style> </head> [/code] Now, any link inside of a class named "filename_sorted" will have the color #000. Does that help or just confuse you more? Might want to check out something like [url=http://w3schools.com/css/default.asp]W3Schools[/url] to help learn CSS. To specify font names and colors and such, is not difficult to grasp. Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »