This question already has answers here:
Flexbox makes horizontal scrolling
(2 answers)
Closed 5 years ago.
Before read my question, it will be better that you watch my site enter link description here http://www.google.com
I want to make Responsive website
So i used flexbox
But some markup lines create a horizontal line for scrolling.
(plz watch red line)
I don't know why it make horizontal scrolling
you can reduce image width or using code:
.dittomall-banner > img { width: 33.33%;float:right }
Related
This question already has answers here:
CSS customized scroll bar in div
(20 answers)
Closed 4 years ago.
Looking for scrollbar that has no inside body, only arrows should available to scroll content. Is it possible? In the snippet, the body has a scrollbar with up and down arrow, I don't want a mid area of scrollbar, just custom arrows that do the same thing(maybe it's called scroll thumb or something else don't know).
body {
height:700px;
overflow:scroll;
}
<body>Div with some content</body>
[here](https://codepen.io/webrexRavi/pen/XxOEZz)
icreated pen for it you can see it here
This question already has answers here:
Why is there a pesky little space between <img> and other elements? [duplicate]
(2 answers)
Closed 5 years ago.
I just have a little problem with an image bottom margin.
I don't understand why below the image, we have a little space with the menu. Someone can explain me why ? I want to stick my menu with my image but i can't and i don't know why.
Like you can see in my fiddle, i have already tried to put margin,padding,border=0 but no change.
Here my example : https://fiddle.jshell.net/3s6dv7rk/
Add display Block on image
display: block;
Check this fiddle : https://fiddle.jshell.net/3s6dv7rk/1/
Try this :
<img style="width:100px;height:40px;display: flex;" alt="Ludo et Béné"/>
This question already has answers here:
offsetting an html anchor to adjust for fixed header [duplicate]
(28 answers)
Closed 8 years ago.
I'm working on a site with a Sticky Navigation and when I use
Example Link
the Sticky Nav overlaps the top of the #example.
The Nav height is 70px so I'm wondering if there's any way to link to #example but start 70px down. I'd rather not create an additional ID since it will probably make things a mess.
Any ideas?
You can use
window.scrollBy(0,70);
to scroll the window 70px down.
To have it actually scroll after linking, you have to change your link such that it executes a javascript relocation before scrolling: window.location='#example'; window.scrollBy(0,70);
That is the job of #example. It moves you to the location of the element with that id.
You can use jQuery to animate your elements to slideUp or your window to scrollTo 70px down.
This question already has answers here:
Hide html horizontal but not vertical scrollbar
(8 answers)
Closed 9 years ago.
There is a horizontal scroll bar appearing here on chrome:
http://www.marketingagencyleeds.co.uk/
I am not quite sure what is causing this.
Any help will be appreciated.
Thanks
It's appearing because your container widths are 1200px, if your screen width is less then that... well you'll get a scroll bar.
If you want to hide the scroll bar, add overflow-x: hidden to the body element
This question already has answers here:
Prevent a centered layout from shifting its position when scrollbar appears
(7 answers)
Closed 5 years ago.
I am currently working on project about car travelling http://wayfi.ru and
I have encountered a problem recently - page content shifts to the left after vertical scroll appears. How to prevent this?
As I know, one could always display disabled scroll and make it enable if there is necessary.
Do you know better technique to accomplish this?
I'm afraid I do not know of any other way to do this apart from always showing the scrollbar, active or not.
The simplest way I think is:
html {
overflow-y: scroll;
}
This way, even on pages without scrolling there is space reserved for the scrollbar and the content won't jump around between pages.