evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
thanks my friend but unfortunately i couldn't assemble that code in my page !
i liked that style, so how can i edit my codes to reach that style ??
could yo help me with this problem ??
follow the tutorial and forget your code for a while. Once you finish the tut. and know how things works, you can accomodate changes and additions to fit your needs. That is the way we learn :)
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
please help me to set active button for active page. page that you are in it.
and other style for other pages, page that you are not.
<?php
$j=0;
for($i=1;$i<=$cc;$i++)
{
?> <li><a class="button active small" href="showcodes.php<? echo "?ss=$j"; ?>"><span><? echo"$i"; ?></span></a></li>
<li><a class="button tertiary small" href="showcodes.php<? echo "?ss=$j"; ?>"><span><? echo"$i"; ?></span></a></li>
<?
$j=$j+$nn;
}}
?>
You mean styling the button? That is CSS and differs from person to person!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
its CSS issue try and adapt this code to your need
<style>
.button_active_small{
font-weight:bold;
text-decoration: none;
color:maroon;
border:1px;
}
</style>
<?php $j=23; $i=100; ?>
<a class="button_active_small" href="<?php echo 'showcodes.php?ss='.$j; ?>"><?php echo $i; ?> </a>
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
My dear i create css style i dont need to add any styles
Please answer my question it is not about creating any styles
As i said i create 2 style for my buttons class="button_active_small" style and class="button tertiary small" so, now i want to set first style for page that i already visiting it that with FOR LOOP COMMAND created and the other style for other pages.
do you pay me for anything I contribute?:(
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
if you cant answer or you dont know what to do you can say i dont have any idea about that and dont ever never waste your and any body's time .
I'm off the bandwagon!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392