I'm trying to create a landing page with bootstrap. The top divs are working fine, but the div on the second row is being pushed down by the larger div on top. Is there a way to make the blue div clear the red div so that it is directly under the top left div? Here is the link to the landing page. http://gabbatech.com/files/rakutenAdWords.html
Related
i'm using the method listed here to create a sticky footer. This works great, however my content divs above it have a semi transparent background, and are in turn placed on another background. You can see the site I am working on here
what I want to do is to have a sticky footer, but I also need the transparent background in the content div to expand to reach the footer.
Thanks.
I am working on a large website for a client and we have run into an issue with the previous designers structure. The footer does not stay at the bottom of the content when it is dynamically generated. I have hidden divs that are opened with links. These divs contain user comments. When both are opened the footer overlaps some of the content. When I zoom in the footer overlaps some of the main content. I've tried:
Ryan Fait's CSS and HTML5 Sticky Footers
How to keep footer at the bottom even with dynamic height website
CSS Reset Sticky Footer
Prevent footer from overlapping
All with no success. Is doing a full restructure the only option? I've also tried using JavaScript to make the footer stay at the bottom of the content. But once the document is loaded and the height changes, the footer doesn't move with content. Ideas? The code I have is very long - 4000 lines of css, 2000 lines of HTML. Should I post part?
I have a web page with two panels. The left panel takes up the majority of of the width and displays user posts. The right panel is a navigation menu so I want it to remain fixed and never roll off the screen.
When there are too many posts to fit on one screen, a scroll bar appears on the right of the screen (NOT the panel), and the user scrolls down. This is all good, except that the navigation menu scrolls off the screen.
Both panels are within a common div. I tried setting its position to relative, then making the nav panel position fixed, with a right offset of 0. This kept the nav panel on the screen, but on the far right (ie. not within the containing div).
How do I go about keeping the nav panel fixed on the screen, but floated to the right of it's containing div?
Thanks a million!
EDIT: For and example of what I mean, look at Facebook. You'll see that the posts column can extend on forever, but the right hand column (with the advertisements) stays on the screen...
You could use the Twitter Bootstrap Affix JS plugin:
http://twitter.github.io/bootstrap/javascript.html#affix
I had this idea for a website of creating a fixed horizontal navigation bar that simply scrolls through the content when you press the menu items but I wanted to have an "introduction" div on top of it with a background image and a logo, lets say of 300px height that displays when you first load the page.
So the navigation bar would appear attached to the bottom of this "introduction" div and only when you scrolled past it would it become attached to the top of the window and become fixed positioned when you scrolled.
If you clicked a certain menu item or if you simply scrolled up to the start of the page it would attach itself to the bottom of the "introduction" div again.
Is this possible to do simply with CSS or would I have to use javascript to achieve this effect?
Thanks in advance!
I think you'll need JavaScript for this one. It will not be hard however. The only thing you need to do is to switch the positioning of the menu to 'fixed' when the menu would otherwise scroll out of the viewport.
I am developing a website where the menu it should be the end of the page. Besides the menu, another div with two images should also sit at the bottom of the page.
Follow the link to the complete source code of the page;
In red, the menu should be aligned at the bottom of the page, aligned to the center of div#leftcontent.
In the div#blue social-networks must be aligned at the bottom of the page, aligned to the center of the div#nav.
When I say bottom, I mean right at the end of the page.
If you mean not statically positioned, but just naturally occurring at the bottom of the page even when the sidebar content causes the page to exceed beyond the main content under which the bottom nav occurs, then you are out of luck using divs. This is one of CSS 2.1's major shortcomings.
You are left with two options:
Use a table for the basic layout
Use javascript to dynamically position the div based on the length of the sidebar
It's up to which you want to choose, but the javascript option will not work for people with javascript disabled, such as older mobile browsers.