Want to float the image after minimizing the windows in html? [closed] - html

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 8 years ago.
Improve this question
I am creating a webpage in which there is an image on the extreme left when the browser is maximized but as soon as the browser gets minimized i want the image to move to extreme right .. How to do that ? I tried float but it's not working..

Do you mean minimized to task bar or resize window? because when you minimize to task bar the image don't visible anymore or i miss something? anyway if you mean resize so:
Use Media Queries:
img{
float:right;
}
#media (min-width: 800px) {
img{
float:left;
}
}
This cause to image float:right until window's width is under 800px and if the browser's width resize to larger than 800px, the image change to float:left

Related

How do I position the img to look the same way it does in the figma file? [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 7 months ago.
Improve this question
I am doing a frontend mentor challenge and I cant get the picture to look how it looks in the picture. I tried making the container position relative and the position absolute but it makes the page wider even if i put overflow: hidden. I am doing mobile first so i'm trying to get it to go from mobile to tablet size with the media query.
I have the figma file on github if you want to see that https://github.com/JosephCass/e-learning
Figma Tablet Size Screenshot
code https://codepen.io/Joseph9384/pen/gOvVdYv
In your media query (min-width: 768px):
Use transform: scale(2); and left: 200px; on your header-image and adjust the value of left and scale property according to your need. Also you can remove overflow: hidden; from header-image as well. Don't use overflow: hidden; on the parent div since it will hide especially the bottom left stat thing which you don't want that to happen.

How to remove right side white space on my wordpress theme on mobile web phone? [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 2 years ago.
Improve this question
I know this is a common bug but haven't been able to find the reason and to fix it with the usual solution of hide x axis overflow.
Can anyone tell me why there is white space to the right on small mobile devices such as pixel and iPhone 4? I haven't been able to replicate this on emulators. The problem occurs on mobile chrome and mobile safari and does not occur on firefox.
The theme I use is static home wordpress with "business page one" theme. Here is the link for the staging website
Any help would be much appreciated i'm not a web programmer just trying to finish my small wp site
Normally this problem is related to the following reasons:
The viewport is not set correctly (make sure that the initial-scale is set to 1.0.)
The body is not 100% for some reason.
There is some element overflowing (for example an image) that is expanding width (make sure that the overflow is hidden, or make sure that anything overflows the body width).
Try to inspect further with dev tools...
.site {
max-width: 100% !important;
}
.site-header {
max-width: 100% !important;
}
#site-header img {
width: 100% !important;
}
Add this css in Appearance -> Customize -> Additional CSS
let me know if this solves your problem.

CSS navigation mobile viewing [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 7 years ago.
Improve this question
My website is not working correctly in the mobile browsers here is the link
the navigation panel is not stretching 100% not covering the about us section
when viewing in the browsers please take a look and suggest a solution thanks.
Let me explain:
1) You want to avoid hardcoded margins cos you never know what type of screen size the user has. Instead position your nav in the middle with automatic margins, like this:
nav {
margin-left: auto;
margin-right: auto;
width: 900px;
height: 50px;
font-size: 18px;
font-family: helvetica;
}
2) Your nav now tries to fit its parent div (navbar), but navbar does not have a width set, so the width stays at 900px. But your #maincontain again has a hardcoded width of 1280px. Your images also have a width greater than 900px, this stretches your page to the biggest size but the navigation remains 900px therefore does not stretch.
3.1) Easy solution: set navbar to have: width: 1280px;
3.2) Correct solution: Remove the hardcoded width from your #maincontain, your images and anywhere else that stretches the screen.
3.3) In a long run, you will struggle to make a responsive website like that, I suggest using http://getbootstrap.com/ as a template, as its responsive, or learn how to use media queries to make your site responsive.
If this helped please UP the post and mark it as an answer! Thanks

Responsive website not able to have 100% width in smaller screen resolutions [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 7 years ago.
Improve this question
When viewing http://rayku.com on a mobile device (anything with iPhone 5 resolution or smaller), there is a horizontal scroll bar - how can I maximize the content width so that there is no horizontal scroll bar? http://d.pr/i/epmI
There is no min-width anywhere in the css.
The scroll is due to the left margin of the button inside the video container .myVideoCont.
If you need to center align the button over the video, then use
left:50%; transform: translateX(-50%);. and avoid left margin.
Use this CSS to target screens below a tablet size, decrease the max-device-width pixels to only target smaller devices:
#media only screen and (max-device-width: 1024px) {
#mainContainer {
max-width: 90%; //also try "width: 90%"
}
}
If this doesn't work try setting the width to 80% and keep decreasing until it fits.

Same Display to all Screen Resolution (PC/Mobile/Tablet) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I'm trying to build my own photo gallery site, and I just need some quick solution to my problem.
Overview: A photo gallery website with problems on displaying in different screen resolution.
Problem: If the screen resolution of the viewer is greater than of 13" screen, the navigation or menu is at the left side. And when viewed in a smaller screen size such as tablets and phones, the navigation is at the top and only shows a scrolling page with a single image at view at its screen display at a time. You can see the difference when you zoom in and out of the my site indicated above.
What must be done to fix the display to the one with navigation on the left even when viewed with phones and tablets?
So you want a non-responsive site???? Okay, I'll avoid making comments about why you should leave the responsive behavior, but maybe you have the only site on the planet that no one ever visits on a mobile device. Here's how you do it...
In your main.css file there is a media query for the header elements that starts somewhere around line 119:
#media (min-width:1000px) {
Remove this line and it's closing } somewhere around line 245.
Then delete the entire media query and it's contents beginning at line 539 and ending around 602:
/
* Responsive code */
#media (max-width:1100px){
header{
...
#map{
margin: 0!important;
}
}
If you also want the portfolio images to not scale remove the last media query and it's contents:
#media (max-width:550px){
.main .work{
width: 100%;
}
}