Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Help with text sub header navigation

Asked Modified Viewed 1,246 times
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
  • Started this discussions
asked
Senior Member

In a section of my theme.php file in my default theme, I have the following code:


</table>\n";

echo "<div><div class='white-header' style='text-align:center;'>";

// Start Quotes

// Array Structure:  "Quote","Author"
//Because of the change in value of $space, authors now have a dash before their name.

$allqts = array
    ("quote1",
       "-author1",
     "quote2",
       "-author2",
     "quote3",
       "-author3",
        );

// Gets the Total number of Items in the array
//  Divides by 2 because there is a Quote followed by an Author
$totalqts = (count($allqts)/2);

// Subtracted 1 from the total because '0' is not accounted for otherwise
$nmbr = (rand(0,($totalqts-1)));
$nmbr = $nmbr*2;

$quote = $allqts[$nmbr];
         $nmbr = $nmbr+1;
$author = $allqts[$nmbr];

$space = " "; //used to be " -", but changed to make quotes without authors known look better.

echo "<center>";
echo "<font color='#CCFFFF'><i>";
echo "$quote";
echo "</i></font>";
echo "$space";
echo "$author";
echo "</div><div class='time'>".showsubdate()."</div></div>";

// End Quotes

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

Although when I use that code, the quotes are centered, but the time is on the left and hovers around the username, while overlapping the username a little bit.


My stylesheet includes the following for .time


.time {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
    color:#ccc;
   padding:4px;
        position:absolute;
        right: 10px;
        top: 100px;
}



Please help me fix this issue!

Thanks!
Edited by googlebot on 30-05-2008 03:47,
0 replies

1 post

G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
  • Started this discussions
answered
Senior Member

I got it fixed -- I skipped over the absolute positioning in pixels in the css stylesheet.. I can't believe I missed it.
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 1 member

1 participant

G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet