This is a discussion on "highlight current page" within the Web Page Design section. This forum, and the thread "highlight current page are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
highlight current page
|
||
| Notices |
![]() |
|
|
LinkBack (1) | Thread Tools |
|
#1
|
||||
|
||||
|
highlight current page
Hi again people,
This is a really basic question, but how, through CSS, do i get the current page to highlight in the menu bar? http://adamsworldbeertour.freehostia.com/ , this is the sort of thing that i mean.
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
|
|
#2
|
||||
|
||||
|
Re: highlight current page
http://www.webforumz.com/css-forum/6...rrent-page.htm
Just found this post, i am producing this site possibly for use as a free template, should i find a way with the php script, or do the manual way suggested here? Edit - if anyone has a php script for this could they please post it thanks
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Last edited by unitedcraig; Feb 1st, 2008 at 22:42. |
|
#3
|
||||
|
||||
|
Re: highlight current page
Hi Craig
Quote:
Cheers |
|
#4
|
|||
|
|||
|
Re: highlight current page
you could take a look here.
http://www.crucialwebhost.com/blog/y...ht-navigation/ not sure if this is what you are looking for cheers Pat |
|
#5
|
||||
|
||||
|
Re: highlight current page
Yes, that is a good link, can you tell me if this looks correct.
|
|
#6
|
||||
|
||||
|
Re: highlight current page
Quote:
|
|
#7
|
||||
|
||||
|
Re: highlight current page
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#8
|
||||
|
||||
|
Re: highlight current page
Great I am on to it!
Cheers Jack |
|
#9
|
||||
|
||||
|
Re: highlight current page
No worries, leave a comment if you like it, or if you have any trouble.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#10
|
||||
|
||||
|
Re: highlight current page
It seems very simple, I copied and pasted your example in to my page:
<?php $page = 'home'; ?> was also added bellow the html tag Last edited by Oak; Feb 2nd, 2008 at 16:52. |
|
#11
|
||||
|
||||
|
Re: highlight current page
I cannot see what the problem is! Explain?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#12
|
||||
|
||||
|
Re: highlight current page
Well, the nav bar has been put out of place/upset by the php code, and > is visible on each nav link.
here is a shot of how the nav bar should look. |
|
#13
|
||||
|
||||
|
Re: highlight current page
It is out of place because of the extra '>' but I've tested the code and I don't get any extra '>'. Could I see the entire code please and/or a link to the webpage?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#14
|
||||
|
||||
|
Re: highlight current page
|
|
#15
|
||||
|
||||
|
Re: highlight current page
Hang on, that's strange! when viewing the page live, the nav bar looks fine? I had only viewed it in the browser when doing tests in DW
|
|
#16
|
||||
|
||||
|
Re: highlight current page
Thought so. If you want to test PHP locally, you should read:http://creativecoding.webforumz.com/...ips-tricks/#q3
You could leave a comment on my blog if you like Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#17
|
||||
|
||||
|
Re: highlight current page
Yes, I will leave a comment for sure!
did you take a look at the source? The active nav is still not highlighted ? Do I need to add any styles to it? Thanks |