Skipping header view in case of mobile using anchors - html

I have a website that supports responsive design where the header is a bit big having the menu, social media icons, search and filters, logo...etc.
The header is not fixed to top when I open the site on mobile, it goes away by scrolling.
The problem is that the space it takes keeps the important page content to view when the page first lands and it is not a good user experience the way it is now.
I have in mind to add some anchors and access the main div(s) right below the header but this requires to append anchors to all links in the website (or 90% of the links at least) to reference specific div ids:
Page 1
Page 2
where breadcrumb is a common container for website body.
Is there a better practice to solve this problem?
Does adding the same anchor to different links affect SEO negatively in a way or another?

Related

Adjusting onset of actual website after introducing a top-navigation bar

I have set up some website using GitHub Pages and used the Leap Day theme. Here's the repository containing the theme's original source code and this is how the template looks in practice.
Since I wanted to customize my website more, I added a navigation bar from bootstrap at the top of the page. Afterwards, I adjusted margins and onsets of the Leap Day template code in order for the actual website's contents to start only below the fixed navigation bar (to avoid that the navigation bar overlaps the rest of the website). For that, I adjusted mainly this CSS file. Also in that file, I renamed the name of the original navigation bar that was present in the template already, and that is shown to the left of the website, to nav2. The custom (top-)navigation bar is called navi.
Well, after all, most of the website is running smoothly and does what it's supposed to do (presenting some project).
However, one problem has remained after the introduction of the additional top-navigation bar, namely that a click onto the name of a certain section or subsection of the currently shown website doesn't lead the user immediately to the start of the respective section any longer, but that what the user is going to see at the start of the actual website's content is somewhere below start of the requested section. As I understand it, the start of some section, e.g. Introduction, is moved to a certain height y on the website when the user clicks onto the Introduction-section's name in the left navigation bar. However, now that the additional navigation bar at the top has been added, such that all further contents have moved downwards, the position y, where the start of the section is shown, is hidden by some banner at the top of the page.
Therefore, I was wondering if anyone knows which of the many variables in the aforementioned css
file to change in order to move the point of onset of a section, y, further down on the website. I have tried changing a lot of parameters already, but I am unable to see which one controls the point I termed y.
To make my problem a bit clearer, please consider the following two images:
This is what is supposed to happen:
This is what actually happens:
Thank you very much in advance!
You could try some of the solutions listed in this StackOverflow question: Fixed page header overlaps in-page anchors.
The most common one appears to be adding padding-top to the a element equal to the height of the navigation bar.

Smaller div tags in one large one not centering or spanning across screen

Ok, so I am making a website for my so far small Minecraft Build team MCBuild, unfortunately, My ribbon on the top with all the pages links, that are not active, will not centered it is embedded inside of another div, and put into a singular .html file and displayed through an iFrame. All of the code is on GitHub and also, the page can be viewed here. Any help would be great, I think I can't get it just because I am frustrated that I didn't get it the first time. Thanks!

Linking To Several Pixels Before A Div On the Same Page

This is probably a really simple question. I have a link on the page tsawebmaster1.hhstsa.com/web_design.html that links to a div on the same page as the link itself using tsawebmaster1.hhstsa.com/web_design.html#seven_steps and it works just fine. The problem is that my fixed header is at the top of the page and thus overlaps the content by 100px, so when it takes you to that div, the user does not see the top of the div linked to. Is there a way I can link 100px less than a certain div.
I don't know if this will work but you should try this:
Our seven core steps to web design will teach you the simple steps on how a website is built. Before delving into any new topic, it is important to develop background knowledge of the whole picture. This way, when you start actually learning web design in depth, you'll be able to connect your under
Try put an empty paragraph between your logo and the contents.
You better use javascript to reach your goal. the window.scrollTo(x,y) function can make your page scroll to a specified amount of pixels on click (also it will look much more neat).
documentation: https://developer.mozilla.org/en-US/docs/Web/API/window.scrollTo
usage:
click to scroll down 100 pixels

Why am I getting shift around header regions in two HTML pages built using almost same code

Below are two simple HTML pages. You will notice that the header of the pages move when one browse from one page to the next. I can not seem to figure out why the header does not remain on the same place...
http://staging.serviceportal.com.au/service05/virgintest/landingPage.html
http://staging.serviceportal.com.au/service05/virgintest/thankyoupage1.html
Below is a screenshot of what I mean. One can notice the 5/10 pixel shift around the header region in both the pages.
I will like to know from where that shift is happening and how to fix this. Just to inform that these pages are responsive and built using Twitter BootStrap
I'd say the header moves because you have a scrollbar on the second screen, so the width of the screen is smaller, and the site moves accordingly.

Put a universal resizable header over a large number of HTML pages

I am working with an old website designed in the mid-90s, which is coded very primitively: left-hand menu done via tables, no CSS, etc. The site consists of a bunch of .html pages. Instead of re-coding the site, I want to leave everything in place but put a header over every page with a banner saying "Go to the new site" or something similar.
This way the banner would look modern, but everything else can retain the retro look (including, most importantly, the URL structure). The header should be 100 pixels tall and fill the whole horizontal space regardless of how the tables below it are coded. The plan is to bulk-copy and paste the new code in every individual page.
What's the best way to write this header?