It was working normally and perfectly and and now for some reason It is backed to be zoomed in. not sure what I did. I have done research and tried other methods but stills stumped.
Just as before, we would prefer to see a “working page” complete with the information in the <head> section of the page. In these cases, that matters.
Likewise, the context in which the image resides could be significant, too.
So, in spite of your wish to be “conservative” in your posting, a bit more info is needed, including the devices in which you have tested and seen the trouble.
Screen shots sometimes help, too.
Can you post a link to the site?
<ot>
Pretend you are one of us strangers and someone just posted that trouble for you to solve. Would it give enough information for you to begin troubleshooting?
I believe i tried this a couple times. Is that like defining a body or a div and then in style using 'background, background-size… etc? Or is this something else.
This particular page is within a site with numerous pages. So the body would need to have a class. Does it work to define that body as “w3body” and then in css have that same code but with .w3body, rather than “body”?
Hey, I posted here a couple weeks ago with this issue: my page loads zoomed in and wont ‘fit to page.’ When I load the webpage locally it runs perfectly when I run it from my actual website: http://griffinmalone.com/index.html/website3.html it runs weirdly zoomed in. There obviously is NO difference in the code between the two so what makes one load different than the other?
sigh Since @SamA74 closed the other one, I’ll post it here…
When you run a menu with a margin-left of 2500 and a font-size of 75px, you’re gonna get scroll bars… all of the css in that style sheet (http://yoursitename.com/index.html/style.css) is to that scale.
I would guess your local style sheet and the one on the website do not match…
There is nothing weird about it, that image is 5472 pixels wide (way bigger than most monitors) with nothing to tell it to scale down to a sensible size.
You have not implemented the suggestions made earlier:-
I’m having a hard time making sense of a lot of your css. It appears to be coded to work on “super-size” monitors, or is it supposed to be a horizontal site?
Before even attampting to make this responsive, you will need the viewport meta tag adding to the head.
Thank you. Added meta. The CSS is (was now) exactly the same. Having ahard time understanding why it is not good to put menu left 2500 pixels… Arent I just positioning it over on the screen 2500 pixels?
I could not find a working method to add it as a background and the other way was working.
The site is not supposed to be horizantal, what in the CSS makes you think that? I am mostly confused because it works perfectly on my actual computer than doesnt on something else- making it difficult to find the problem.
Because unless you have a 4K monitor, MOST people have don’t have resolutions that high My laptop runs (in dock) at resolution at 1920 x 1200, and I’m pretty sure my desktop is something close to that. So, since 2500 is greater than 1900, you’ll get a scrollbar - and that’s if I have my browser window maximized (which is a rarity). That’s the same reason the font-size looks so ridiculous - 75px is almost 10% of my browsers maximized usable screen height (I get 1080px maximized with the tabs, address bar and task bar).
Hard coding pixels for placement and font-size is a wholesale bad idea. Using percentages (or em or rem or vh or vw or vmin or vmax) is a better way to approach it…
Okay, I understand. Got a lot of reworking to do then.
So If I understand what I should be doing, redoing most of my pixel dimensions and replacing them with percentages.
As for the background, again this is what I currently have:
.w3body {
background: url(w3-images/w3cover.png) center no-repeat; /* url not image */
background-size: cover; /* make the image fill the container */
}