# May 18, 2013 at 8:35 am
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.# May 18, 2013 at 8:56 am
No…I’m just not understanding the problem.
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.# May 18, 2013 at 9:23 am
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.
You must be logged in to reply to this topic.