Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
derek765
Regular
Regular



Joined: Sep 27, 2012
Posts: 99
Location: Okinawa, Japan

PostPosted: Sun Dec 09, 2012 7:11 am Reply with quote

Hello,

I know this is probably simpler than I am making it, but I keep playing around with it and kinda get it right, I am trying to get it each link in the navigation bar to look like this below:

[ LINK NAME HERE ]

But can only seem to get it where that whole thing is clickable, but I really just want the center LINK NAME HERE clickable.

I am currently using this coding:

Code:


$nukeNAV = '<ul id="nukeNAV" class="nukeNAV"><li><a href="./">[ '._HOME.' ]</a></li>'."\n";
if (is_active('Downloads')) {
$nukeNAV .= '
<li><a href="modules.php?name=Downloads" title="">[ Downloads ]</a></li>';
 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Dec 09, 2012 8:45 am Reply with quote

Try putting the brackets outside the a like so

Code:



$nukeNAV = '<ul id="nukeNAV" class="nukeNAV"><li>[ <a href="./">'._HOME.' </a>]</li>'."\n";
if (is_active('Downloads')) {
$nukeNAV .= '
<li>[<a href="modules.php?name=Downloads" title="">Downloads</a> ]</li>';

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
derek765







PostPosted: Sun Dec 09, 2012 9:03 am Reply with quote

That trys to show it as a list when including it out of the

Code:
<a href=""></a>
 
derek765







PostPosted: Tue Dec 11, 2012 9:01 am Reply with quote

How would I go about adding a image icon next to each link in the menu, I have tried doing this below but with the <li> list it keeps putting it either above or below the menu links.

Code:
$nukeNAV = '<ul id="nukeNAV" class="nukeNAV"><img src="IMG HERE"> <li><a href="./">'._HOME.' </a></li>'."\n"; 

if (is_active('Downloads')) {
$nukeNAV .= '<img src="IMG HERE"> <li><a href="modules.php?name=Downloads" title="">Downloads</a></li>';
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Tue Dec 11, 2012 10:52 am Reply with quote

It doesn't work (not valid) to insert an image in the middle of an unordered list
. It has to be inside the li tag and probably should be inside the link as well.

<li><a href="./"><img src="IMG HERE">'._HOME.' </a></li>
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©