Mobile page being cut off at the top [closed] - css

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I created and hosted a Jekyll website on github-pages using the HTML5 UP Alpha Theme found on "html5up.net/alpha"
For some reason, pages are being cut off at the top on mobile only. I've gone through the mobile css but I have been unable to locate any issues.
The site mobile css can be viewed here:
http://pastebin.com/jwNwpXyF
And a screenshot of the problem can be seen here:
http://imgur.com/ZPycfNH

Your background image of banner is getting smaller for mob device to maintain the ratio, because of which the #main is cutting from top as it has margin-top:-26em for desktop, the same applies on mob too.
To fix it you have to change the margin for mob devices. Try below css.
#media (max-width: 640px) {
body #main {
margin-top: -8em;
}
}

Related

How can I remove the padding on pages on mobile only [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Hello I cannot figure out how to remove the borders on my website in mobile only. I have huge padding that do not look good in mobile.
An example page
https://www.onlinematching.games/jewels-blitz/
Using CSS media queries.
You can control design for different devices using media queries.
Reference:- https://www.w3schools.com/css/css_rwd_mediaqueries.asp
as I checked your site all you have to do is change the width attribute of .container, .container-1400 in your style. there are more than one place to be changed(for every media queries).
codes below are for example:
#media only screen and (max-width: 767px) and (min-width: 480px){
.container, .container-1400{ width : 99%;/* 1% for margin */}
}

Why don't my grid columns layout correctly in Firefox? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
so on this website http://kimandydev.com/
the spacing is weird on only the 4th row.
Everything is gridded out perfectly on Chrome and Safari, but on in Firefox.
I used Advanced Custom Fields to feed the content just FYI.
Can someone inspect it on firefox and somehow figure out what is causing it?
Thank you
The problem is that some of your images aren't the same aspect ratio, and Firefox considers the partial-pixel height difference when it lays out the floats, so they don't clear.
Be sure that all your images are exactly 1000x1500.
You could also force image sizes at each breakpoint using media queries:
#media (min-width: 940px) { /* or whatever it is */
.front-img {
height: 330px;
}
}

Footer not displayed properly on mobile browsers [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm working on my portfolio website, and ran into a problem when viewing it on a mobile browser. Here is the website: http://attilakomaromi.ca/so_question/
If you scroll down, you'll notice that the footer is revealed. Chrome's mobile emulators also display the footer properly. However, when viewing the webpage on an actual smartphone, the footer can be scrolled to, but the page will snap back up the hide it once you remove your finger from the screen (please take a look at the above link on your phones to understand this problem).
Here is the repository on GitHub for my website, if you need to take a closer look at the code: https://github.com/Twinbird24/portfolio-website
Add this css and then try
#media (max-width: 480px) {
footer {
position: static;
}
}

Div not showing up in responsive layout [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a responsive wordpress website which shows nicely on desktops. But somehow the whole layout is broken on smaller screens and the products div on homepage doesn't even display up there. .featured_products is the ul which you see on home page but it disappears as soon you resize your browser to smaller mobile size.
Here is my website.
It is because of a media queries in your stylesheet which starts at line 5811 in style.css
#media only screen and (max-width: 479px)
And then this part in the media query which starts at line 6149 in style.css
#subcontent2 {
display: none;
}
please change the code
#subcontent2{
display:none;
}
and also check this jsfiidle for your solution
http://jsfiddle.net/wpEwZ/

Alignment Issue: Full Screen vs Resized [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I took a WP theme and have customized it for my needs. I have got into a issue now with CSS.
It looks fine on full size
However when resized or when viewed on iPad, the header is getting distorted. As you can see the RSS icon on the top right has gone past the colored header.
Any pointers in this regard would be appreciated.
Please let me know if you need some more information.
In case you need to check with Firebug/other inspector tool, here is my site
If a block overflows, it does not scale the parallel ones. Putting div#header div#menu and div#footer into div#content parallel to the container should solve the issue.
CSS alternative way:
Add floated fixing to the container and all childs, in this case:
#top-overlay, #header, #menu, #content, #footer {
float: left;
min-width: 100%;
}

Resources