Hi im having a little trouble getting my head around linking to pages on css/html.
I have a main page and then I have 3 pages i want to link off of it.
My problem is, I link all the pages etc they all open up in a new window, which is what im after at the moment. However say my ‘portfolio’ page is underneath my ‘home’ page, so i just scroll down and it’s there and even when I click the link to go to the ‘portfolio’ page, the main menu plus the ‘portfolio’ page is just repeated :/
I’ve tried looking at other sites that are similar to mine but i just get lost in the codes.
I’ve tried making seperate .css sheets but this doesn’t help either.
Without seeing the issue first hand we can’t diagnose it properly.
>However say my ‘portfolio’ page is underneath my ‘home’ page, so i just scroll down and it’s there and even when I click the link to go to the ‘portfolio’ page, the main menu plus the ‘portfolio’ page is just repeated
doesn’t really make sense unless ALL of your pages have the same code…assuming you actually have 4 separate pages and not one long page with different sections.
If it was the latter then there should be no need to open each ‘page’ in a separate tab.
On that subject, although opinions differ, it is usually preferable to let the user decide whether they want to open links in new tabs rather than force the choice on them.
This is where I’ve been getting confused I think! So for each page I need separate htmls but I can use 1 style sheet? …Up until now I’ve not seen anything about using separate htmls just separate sheets or one sheet! ……..
In general you would have a separate HTML file for each page.
You would only have (ideally) a single CSS file which would affect **all** the pages at the same time.
Without getting too complicated, you **can** have separate CSS files for individual pages but that leads to a lot or repetitive work when you want to make a global change. I’d leave that until you are a little further along.