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 |
|
||||
|
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)
|
|
|
|
||||
|
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. |
|
|||
|
Re: highlight current page
Hi Craig
Quote:
Cheers |
|
|||
|
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 |
|
|||
|
Re: highlight current page
Yes, that is a good link, can you tell me if this looks correct.
|
|
|||
|
Re: highlight current page
Quote:
|
|
||||
|
Re: highlight current page
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: highlight current page
Great I am on to it!
Cheers Jack |
|
||||
|
Re: highlight current page
No worries, leave a comment if you like it, or if you have any trouble.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
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. |
|
||||
|
Re: highlight current page
I cannot see what the problem is! Explain?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
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. |
|
||||
|
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?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: highlight current page
|
|
|||
|
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
|
|
||||
|
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
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
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 |
|
||||
|
Re: highlight current page
Oh yes sorry now you go and add your CSS style in the CSS sheet.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: highlight current page
Ok! will leave comment shortly!
|
|
||||
|
Re: highlight current page
Nice thanks Oak, and glad I could help
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
![]() |
| Thread Tools | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.webforumz.com/web-page-design/64775-highlight-current-page.htm
|
||||
| Posted By | For | Type | Date | |
| chromestyle nav/highlight active page IE problem - Dynamic Drive Forums | This thread | Refback | Apr 26th, 2008 17:49 | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Current page problems | unitedcraig | Web Page Design | 3 | Jun 10th, 2008 20:44 |
| After login: Redirect to page in history (Current - 2)... | skuliaxe | PHP Forum | 4 | Feb 20th, 2008 16:54 |
| highlight the current page of a drop down menu | Oak | Web Page Design | 2 | Feb 12th, 2008 03:08 |
| How to highlight the current page Nav link ? | Oak | Web Page Design | 11 | Jan 20th, 2008 13:21 |
| Indicating current page on navigation bar | masonbarge | PHP Forum | 2 | Oct 30th, 2006 19:40 |