|
08-01-2007, 11:02 | #1 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
Proposed change to website.
Ok, i've had a look at some CSS code as some of you suggested and have set up a test page with a new navigation bar.
What do you think? http://www.admiralcomputers.co.uk/test.htm Plan is to have this on each page. However, it means a lot of duplicate code. Does anyone know how I can specify the the Navaigation pane in one place which is viewable on all pages. Would save a lot of time integrating or when making furture changes.
__________________
I just got lost in thought.. It was very unfamiliar territory. Techie Talk | My gaming Blog | PC spec | The Admirals log |
08-01-2007, 11:18 | #2 |
Nice weak cup of Earl Grey
Join Date: Dec 2006
Posts: 48
|
Just opened that page on my puny 1024x768 lappy screen and it looks a bit funny.
The main headings overlap the blue border and the subheadings are overlapped by the main headings. Just a heads up |
08-01-2007, 11:25 | #3 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
Oh - I knew that they would overlap the subheading.. I thought I could make the list semi-tranparent but not sure how to do that. But it doesn't overlap the with the menu option in IE.. Must be a firefox problem?
__________________
I just got lost in thought.. It was very unfamiliar territory. Techie Talk | My gaming Blog | PC spec | The Admirals log |
08-01-2007, 11:43 | #4 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Don't duplicate code - it makes for a maintenance headace. Use server side includes if you must.
|
08-01-2007, 11:48 | #5 |
Nice weak cup of Earl Grey
Join Date: Dec 2006
Posts: 48
|
Yeah seems to just be Firefox, looks perfect in ie.
|
08-01-2007, 11:47 | #6 |
I iz speshul
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
|
Whoops, just remembered I said I'd redo the website for you Paul I'll crack on with it when work is quiet and see what I can do
Regarding having the navigation page in one place, you'd be best doing that using PHP/ASP for it, as you can create the navigation page as a seperate file, then call that file on each and every page, but only editing the single file whenever you need to make changes. Unsure how it would look though using the CSS menu system you've got there. I'll play about with it when I get the chance and see how it works.
__________________
Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others. |
08-01-2007, 12:53 | #7 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
Thanks Davey..
There's so much to learn
__________________
I just got lost in thought.. It was very unfamiliar territory. Techie Talk | My gaming Blog | PC spec | The Admirals log |
08-01-2007, 13:01 | #8 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
ahh .. So All I have to do is have one standard page say nav.htm, then use the following piece of code on each page where required..
<!--#include virtual="/nav.htm" --> maybe not
__________________
I just got lost in thought.. It was very unfamiliar territory. Techie Talk | My gaming Blog | PC spec | The Admirals log Last edited by Admiral Huddy; 08-01-2007 at 13:13. |
08-01-2007, 13:30 | #9 |
I iz speshul
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
|
You'd need to make your test page into a php page, and the server it's hosted on needs to have PHP installed on it for it to work.
__________________
Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others. |
08-01-2007, 13:32 | #10 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Huddy's (and my) suggestion doesn't require PHP, it uses SSI instead. You'll probably need to rename the files to .shtml for it to work.
If there are other reasons for switching to PHP (and there may well be), then sure, but it isn't the most optimal route for just doing includes. |
Thread Tools | |
Display Modes | |
|
|