Nav Bar -why the duplication - Post...
The part I do not understand - why does it appear that the nav bar in the index.html home file, with the various options and sub-menus has to be repeated in all the other individual pages. If we grow to 100+ pages, we cant be copying the menu hierarchy 100 times - so far, not seen this coded in a css file, which would make more sense as it would only need changing once (assuming all pages have the same menu/nav bar requirement).
So as a simple example:
Why is this not done as a css itself so avoiding the need to edit/amend this in each of the four separate pages?
The actual HTML tags have to appear wherever you want the navigation to appear. But you could make it easier for yourself by creating one menu fully finished, and then make it into a symbol. After that, you insert the symbol on each page. With that done, you can update just one instance of it, and they will all be updated.
I see that you are using the .asp extension. I'm not familiar with ASP myself, but if it is similar to PHP, I guess it should work. In PHP you have the 'PHP include'. I don't know if there is something like that in ASP.
CSS is for styling elements (with given class names as in all the same type of element with the same class name get the same styling (CSS code) applied even across all the different pages, no matter how many pages there are, elements with Unique ID's get their own CSS code (which over-rides any class styling that may be applied to it's class name) (elements with same ID but on a different page get the same CSS styling )
HTML is the code for what one sees on a page.
I must be missing something here
Site Designer takes care of all the code you need (CSS, JS, HTML) all one has to do is drag & drop elements into the canvas, then "style" as required Site Designer does everything else. Export it or publish it,,, BOOM there it is done for you looking just as you did it on the project canvas. I don't understand why you are worrying about duplicating however many CSS bits there are,
And as Inger says applying elements as "Symbols" allows you to put the same element with exactly the same styling and functions as the others, you can also copy and paste one element to another page or even the same page in a different location and Site Designer even takes care of all the coding for that too,
"COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?
LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
I can make "INDIVIDUAL BESPOKE" step-by-step video tutorials
for you to watch at your leisure as many times as you need
I have also started updating the ready made step by step tutorials, Ready Soon
my secure email details form
https://rsd-tutorialscom.coffeecup.com/ … l-details/
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.