How do i align the main menu?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Darkhorse
Forum Newbie
Posts: 4
Joined: Sat Dec 13, 2003 7:13 am

How do i align the main menu?

Post by Darkhorse »

Hi,
Im having a bit of a problem with my PHP site at http://www.tntleague.com

Could somebody tell me how to align my main menu so it all lines up nicely to the left? Also how do I program the site so that when a visitor clicks on a page it just goes to that page instead of opening 1 window for every page clicked?

Your help is much appreciated.

Darkhorse
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

what menu are you talkin about ???

the one written "Navigation" as header ???


as far as links goes...

this is what you have :
<A href="http://www.tntleague.com/" target=_blank>
just change this to :
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

for alignment...

instead of
<div align=center>
use
<div align=left>
or you can use alignment for the table cells directly,
<td align=left> content </td>
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Since none of these problems are PHP related I've moved this thread to the clientside forum.

Mac
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

you designed taht site and yet you have no idea how to make alter table alignment in HTML!?

<-- thinks thats a:
view source
copy
paste
claim as own

Lame
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

he's actually using a ready made site called PHP-Nuke, lots of people use it.

http://phpnuke.org/

Mark
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

sorry

my bad
Darkhorse
Forum Newbie
Posts: 4
Joined: Sat Dec 13, 2003 7:13 am

Post by Darkhorse »

Thanks for all your help, just a few more questions if I may. I have aligned my menu now so it looks all lined up on the left but I want to add a little icon to the left of each line, I tried it but the icons just come up above the lines - how do I format my menu so it looks like the following:

:) Menu
:) Home

Something like the above.

I didnt quite grasp where I had to put that code to stop new windows popping up when visitors click on the selections in the menu, can you please tell me again in a simpler way...lol

Cheers.
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

Okay i dpon t understand your first question... you want the menu to be how ??

For the new windows thing it's easy.. each time you see that in your code

Code: Select all

target="_blank"
well just DELETE IT
and you won t have any pop up now... if you want a pop up in one of the section just leave it there..
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

ps : if you use an editor (like dreamweaver) well make a find and replace

that means you can just find target="_blank" and replace it with a white space or if all your target are at then end of the link
ex : <a href="whatever.php" target="_blank">

well find target="_blank"> and replace it with a >
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

try doing this,
<img src="icon.gif" align="absmiddle"> <A href="http://www.tntleague.com/">
Darkhorse
Forum Newbie
Posts: 4
Joined: Sat Dec 13, 2003 7:13 am

Post by Darkhorse »

I dont use dreamweaver or anything like that. I have a proper admin page where I can edit the site. So all I get is a form with a few things to fill out like http:, Image: and html tags.

Any ideas?
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

in your form there must be an option to make page goes in _blank or _self or whatever.. but something must be there...
Post Reply