Bootstrap 4.5 Carousel image pull up - css

I have a customized carrousel. What i want to achieve is shown below as image. I want to pull up images a bit top on the carousel.
I set up .carousel-inner css to overflow: visible;and img css to margin-top: -33px in order to achieve what i want but that way when carousel sliding content is mixing up (because of the overflow-x:visible and if i set overflow-x: hidden; my pull up on top is became not visible).
GOAL
ISSUE
So whats the correct way of pull up image in carousel items out of whole carousel element?
Update:
Added codepen link to issue:
https://codepen.io/meowornever/pen/gOwGxGy

Related

One Pull Left, One Pull Right, but how do I center between?

Seen at http://www.gerddagne.com
I want to center that gallery logo. I have tried this link but cannot get the centering to work correctly - Centering brand logo in Bootstrap 3 Navbar
My css is very outdated :(
You can also center like this - add to your .pull-right
what this will do will center that entire div inside its parent div. So in your case you also have the pinterest and facebook social media links inside it. they will be included in the centering.
CSS
position:absolute;
left:50%;
transform:translateX(-50%);
For the start if it is okay to customize your Bootstrap, you can remove the Pull Right Class from it. And give it a custom class (something like center-logo)
.center-logo{
margin: 0 auto important;
width: 230px;
}
Usually the margin: 0 auto; works when the width is known. That means 230px is a variable which is the width of the content within the div encapsulating the logo and your social media icons (facebook and pinterest). However as you noticed this centers your social icons too. Maybe you move them to another div and apply the pull right class to that div

Unable to modify a slider height

I recently bought a parallax template, and I am trying to make a website by modifying the code to my needs. The template I use have a full screen slider at the top of the one page parallax theme, marked as id="home". For some reason, this section is set to 100% height, but I want to change this.
In the template, the original code is as follows:
#home.home-fullscreenslider {
background: url(../images/pattern.png);
position: relative;
overflow: hidden;
height: 100%;
}
And this initiates the slider:
<div id="home" class="home-fullscreenslider">
</div>
I deleted the height of the slider, so now I can fit the images to the screen properly. But the whole section is still at 100% height. I couldn't find any portion of the css code that dictates the height of #home. What do I need to do?

Bootstrap jumbotron under nav bar

I am trying to accomplish this:
http://unity3d.com/community
A full width header image under the navbar: what's the best Bootstrap 3 approach to accomplish this?
I was able to move the jumbotron outside the main container using this tutorial:
http://www.tutorialspoint.com/bootstrap/bootstrap_jumbotron.htm
Now the challenge is to move the navbar back to it's original position at the top of the page (it is currently displayed just after the jumbotron)
Thanks.
Try adding up some custom CSS and HTML:
HTML:
<div class="background-image"> </div> /!-- Make sure it is right under the closing head tag! --!/
CSS:
.background-image {
height: 400px;
background-image: url('community.jpg');
width: 100%;
position: absolute;
top:0;
z-index: -100;
}
After your background div, you can put your jumbotron and customize it. Make sure your image is wide enough ( 1920px is a good width) so that it will look ok on all resolutions. Also, the height must be fixed , otherwise the image is going to take up your whole page.

CSS fullscreen layout with top menu and content filling remaining screen space

I want to achieve that result as my web app layout:
I create application for mobile usage first. I want to fixed top menu that stretch to it content and content at the bottom of this menu. Content height can be very long but I want to use overflow-y: auto;. I use CSS display: table; for container and display: table-row; for menu and content to solve this problem. JSFiddle example here.
Which pros and cons should I expect? I.e. mobile browsers interoperability, performance issues and so on.
I had this exact same issue and I solved it in exactly the same way you did. The only issue I ran into was that the row on the bottom:
#content {
display: table-row;
height: 100%;
}
IE will not respect this and it will see height:100%; and instead of taking of the remaining space of the table like every other browser it will be equal to 100% of the entire table causing your layout to render incorrectly. The only way i found to solve this was to use a bit of jquery with a window resize function to basically only fire when it's IE and apply a pixel value height to the #content based on what it should be.

Flexslider image size - automatic adjust to fluid width?

I've installed the basic version of Flexslider. I've removed the css related to div ID="main", so that the slider can stretch across my page.
However, the images don't adjust according to the new width.
This is what I mean.
I changed the width property for:
.flexslider .slides img
This does change the width, but the images still do not automatically align themselves to start on the left where the slider starts. There remains a kind of image overlap.
What needs to be changed in the CSS to have them aligned? Does FlexSlider only work with fixed image sizes, and not a fluid layout?
What I did was wrapped a span with a class to the image tag
<span class="className"><img src="images/slideImage-1.jpg"></span>
Then in the CSS I added
.flexslider .slides .className img{
width: 244px;
}
Hope that helps

Resources