Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!
If you have any problems with the registration
process or your account login, please contact support
Hi again people,
Iv been busy working with my portfolio and have a nice little site coming along. Nothing too flashy but just utilising gradients in photoshop to get a nice-ish design for my site.
Anyway, am i being really thick if iwas to ask th below:
LINKS (ie: navbar links)....how the heck do i code it so the links are part of my style sheet as opposed to embedded in my HTML doc? Obviously i am racking up a few HTML pages now, and dont really want to have to add EACH link for EACH webpage to update the links in the navbar, if i say add another page to my site.
I am getting to the stage where i wanted to create some buttons in photoshop and use them as my navbar links instead of chunky coded buttons. So i have created the button template, and am ready to link a page to it in the navbar but then realised the above question!!
Hope that all made sense and look forward to any responses.
ta.
Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.
Secondary Goal: CIW foundation course exam 1D0-510
BOLD indicates now studying...
Note whilst studying, i will create a portfolio of my learnings. See below
amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
I've never seen it done before, if your host supports PHP you could very easily do it using some very simple php and make elements like the header footer and navbar alot easier to manage.
I've never seen it done before, if your host supports PHP you could very easily do it using some very simple php and make elements like the header footer and navbar alot easier to manage.
Let me know if you need some help with the code.
”
So you mean to tell me that there is no way to update navbar links using CSS stylesheets?? Which means i am going to have to write in links in every page of my html docs so each page displays the new link in the navbar?
Guess i best start learning PHP....
My ultimate next question would be then...if my website is local only to my machine at the mo, i cannot update links in my navbar other than the before mentioned method stated above?
Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.
Secondary Goal: CIW foundation course exam 1D0-510
BOLD indicates now studying...
Note whilst studying, i will create a portfolio of my learnings. See below
amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
If i have picked you up correctly you could use SSI(Server Side Includes), save you menu in a file called menu.inc and the pop this in the pages where you want to display the menu
Code:
<!--#include FILE="menu.inc" -->
this should mean you only need to edit the menu.inc to change your nav or learn something dynamic as per
If i have picked you up correctly you could use SSI(Server Side Includes), save you menu in a file called menu.inc and the pop this in the pages where you want to display the menu
Code:
<!--#include FILE="menu.inc" -->
this should mean you only need to edit the menu.inc to change your nav or learn something dynamic as per
”
That is exactly what i was after. Thanks for that Thomas.Rep awarded. So this SSI file, im lost as to how to begin. Should i create the file as a .inc file?? What code do i include?
Maybe i should google it
Any hlp would be great though
Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.
Secondary Goal: CIW foundation course exam 1D0-510
BOLD indicates now studying...
Note whilst studying, i will create a portfolio of my learnings. See below
amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
it would look something like my attachment, heres a good place to start
also if your server doesn't support SSI, the PHP(if supported)/JavaScript example in that link are viable option as its not too complex
”
Thanks again Thomas, great help, exactly what i was after. I had a thought actually....(wait for it)...and assumed when first starting out that CSS would do all of what i enquired about in its External style sheet. Surely this is what the purpose of CSS are? I guess CSS gears more towards design simplification/convienience rather than things like my initial question. It would be handy to be able to include the "include files" in your CSS, although im aware it doesnt work like that, would be handy to be able to include these files within the Stylesheet itself. Maybe im after too much of an easy life
Cheers guys.
Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.
Secondary Goal: CIW foundation course exam 1D0-510
BOLD indicates now studying...
Note whilst studying, i will create a portfolio of my learnings. See below
amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
CSS is supposed to be used for controlling the format and layout of the web page, not the actual content, hence why you can't specify the hyperlinks in the CSS file. You can create all sorts of classes to format them however you like, but you can't change the content.
Welcome to Dynamic Drive's new CSS library! Here you'll find original, practical CSS codes and examples such as CSS menus to give your site a visual boast.
Welcome to Dynamic Drive's new CSS library! Here you'll find original, practical CSS codes and examples such as CSS menus to give your site a visual boast.