bootstrap alignment issue with sidebar and content - html

I am learning the bootstrap and I have tried to create simple page with sidebar.
My live demo is here
In this example when the sidebar is closed the content part not taking full widh of the display. any one guide me to fix this. I want content part should not be overflow out of the screen size when side bar is opened and occupy full width when side bar is closed.

You have to apply one CSS rule and need to change the container to container-fluid
Following is the CSS rule in your style.css:
#content {
width: 100vw;
}
Note:- if you fine with container's left and right spaces then do not change it to container-fluid.
Hope this will work you :)

Related

Links are unclickable at the footer bottom

I created a landing page with Wordpress and I inserted this basic HTML code at the bottom of it :
<p> שיווק דיגיטלי createak כל הזכויות שמורות</p>
I apologize for the foreign language. :-)
I have always used this code, but for some reason now it's unclickable on this specific landing page: http://mickeyberkowitz.com/.
I have no idea why it's happening, any suggestions?
It looks to me like a CSS rule is making the container element for the final section (footer?) fixed, since there is no rule to hide the overflow-y the images show up fine however, the link is actually behind those images.
The CSS rule below fixes the container to 100vh however the content inside the container is much "taller" and so that overflows down. Your link is positioned directly under the parent element of the container and because the height of the offending container is fixed, it doesn't move down.
#media (min-width: 768px)
.elementor-section.elementor-section-height-full {
height: 100vh;
}
If you changed that CSS rule to the one below you'll see an improvement:
#media (min-width: 768px)
.elementor-section.elementor-section-height-full {
min-height: 100vh;
}
You will then notice the large space between the bottom of the "trophy" image and button - this appears to be a "spacer" element probably created by a page-builder plugin. I'd remove this if I were you. In fact, there appears to be another spacer below that as well, these create blank space that you may want to remove - depending on the desired aesthetics of the site.
I checked in your site. This is because, in your code other divs and elements are show over <div id="footer-bottom">
You need to add following code in CSS
#footer-bottom{
z-index:9999;
position:relative
}
This is a quick Fix.
But this may make other things non-clickable. So you need to adjust all your html divs and code properly with CSS.
Please use google chrome or firefox developers tool or inspect your code and fix divs that are overlapping each other.

Best way to deal with mis-aligned header and main due to scrollbar

I am working on a site with a header at the top and a main content area. The header does not scroll but the main area does. This means that I have a scrollbar to the right of the main area but not to right of the header and they do not line up:
In this image the red bar is the content and the orange bar is the centre section of the header that should be in line with the content.
These are both aligned using this css:
.center-content {
width: 100%;
max-width: 800px;
margin: 0 auto;
}
What is the best approach for this?
I was thinking of just adding the scrollbar permanently but I don't really want to do this. I could then just add some padding to the left of the main section to re-center it. Alternatively I could add padding to the right of the header.
Questions:
How would I change the style of the header based on wheather the main section has a scrollbar?
How would I add padding to the main section based on wheather it has a scrollbar?
How to I get the width of the scrollbar? Is this guaranteed to be the same across all browsers (I need to cater for mobile as well)
I have created a JSbin for this that demonstrates the issue.
I am using the material-design-lite style sheets for this.
You will not want to change any styles based on the scrollbar - I think that's too complicated and it would almost certainly involve javascript. Scrollbars are also not consistent across browsers/mobile. A better option would be to fix the header to the top of the page, and make the content div's margin-top equal to the header's height. Then the scrollbar, when it appears, will be to the right of the entire page. See an example here:
http://output.jsbin.com/xuroyaceli/#
Resize the window to see how it looks with a scrollbar.

Bootstrap Responsive Menubar Issue

I have been trying to develop a menubar for bootstrap in which the image logo be centerized instead to the usual left of the bar. But the problem is, the right links of the menu bar goes off screen. When I preview the page with a width greater than 2050 pixels, it looks fine.
But when I have something smaller than that, the right links didn't respond to the window change and slid off the page.
Is there any way to fix this? I have been playing around with the col-md-7 and the col-md-offset-3 class of the nav. But it didn't fix the problem, just moves/resizes it around the top.
Here is the link to the snipp of the page. http://bootsnipp.com/snippets/rvGQz
DIV with container class, that wraps your navigation, breaks the layout because of this class actually sets the width:
.container {
width: 1170px;
}
Remove container class from a DIV and that should do a magic for you.
Have you adjusted the media queries for each break point in the grid as you adjust your screen sizes?
http://getbootstrap.com/css/#grid-media-queries

alignment issue in webpage - responsive css

I have an alignment issue, rather height issue.
Please look at
http://www.hashgurus.com
- in desktop version the header - precisely where the logo is positioned and the menu looks good. On smaller devices/mobiles the logo height becomes too large and becomes clumsy.
I tried changing some parameters to change the height of the div tag but its causing other alignment issues. Any pointers on how to fix this one?
looking at your css you need to add this to the media query:
.header_3 .menu_wrap .logo {
margin-bottom: 0;
}

Fix the gaps in the left and right side of content

I am using bootstrap and trying to tweak one of the free template for admin needs. Right now the content inside #page-wrapper leaves too much space on either side when the window is maximized. I tried playing with different padding, margin size but then the responsiveness loses and the horizontal scroll bar appears. How can I reduce the spaces on both the left and right side of this content without losing responsiveness.
Please find the screen shot below
The fiddle is available here
The template was working fine originally but when I wrap it inside the bootstrap container div, I get this problem.
change the container to container-fluid
You are using .container class as wrapper. It has specific width adjustment, which depends upon screen resolution. You should use .container-fluid class for a fluid layout. Or otherwise you have to edit bootstrap css file. See the css code:
.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
#media (min-width:768px){.container{width:750px}}
#media (min-width:992px){.container{width:970px}}
#media (min-width:1200px){.container{width:1170px}}
.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}