Is float as css work with display:flex ?? if the answer is no .. what is the solution with this? - bootstrap-4

I'm setting ul as display:flex , and i need to float this ul to the right
but I can't do this

Related

How to remove shadow from glyphicons in bootstrap carousel

I have a bootstrap carousel on my site. The right and left arrow glyphicons which come with it are surrounded by a square grey box of shading. I was wondering if someone could tell me how to remove the shading so I just have the arrows. Do I have to overwrite bootstrap's css somehow?
I've had this issue before, just add this as bootstrap offers the shadow as a background image or/and as a filter
.carousel-control.left, .carousel-control.right {
background-image:none !important;
filter:none !important;
}
And as suggested before i would change the opacity, but to 1
just add <style="background-image: none;"> in .carousel control
I think what you're referring to is the .carousel-control items.
This Bootply that I've created should show you what you need to adjust which is the opacity of the element.
http://www.bootply.com/TvRdyXhIxo
Set the opacity to on the normal state and the hover state to whatever you want.
.carousel-control {
opacity: 0.5;
}
.carousel-control:hover {
opacity: 0.5;
}
Just add this and make sure it's overwrite the bootstrap.css
.carousel-control {
background-image:none !important;
filter:none !important;
}

How to use transform by css3?

-webkit-transform: perspective(500) rotateY(13deg);
-webkit-transform-origin: 0% 45%;
DIV is left side position.
i just want to know how to place it right side(opposite)?
The code you provided will produce something that behaves like this JSFiddle.
Typically, the CSS3 transform property is used to rotate, scale, are move an element about a point. To move an element to the right of the page, like what I think you are describing, you should just simply float the element to the right or use the margin property instead.
div {
float: right;
}
This source discusses all the various CSS3 transform functions. The most common are:
translate(x,y)
scale(x,y)
rotate(angle)
skew(x-angle,y-angle)
These would not 'move' an element to the right side of the page like you are describing.

Bootstrap navbar margins

I'd like to make the left and right margins of the navbar conetnt smaller so the "brand" (left most component) appears more on the left then the default and same for the right component.
Can somebody point me to relevant less variables to modify?
Thanks
With a basic layout, the CSS selector you want is
body > .navbar .brand
Play with margin-left and margin-right until you get the result you want. Depending on how you are calling your CSS styles, you may need to add !important as well, eg
body > .navbar .brand{
margin-left:-20px !important;
margin-right:-20px !important;
}
If you don't have any success with this, try ommitting body >
EDIT
If you want to change the width of the entire navbar, try something like
.navbar{
margin-left:-20px;
margin-right:-20px;
}
You might also need to adjust the details for navbar-inner, eg
.navbar-inner{
padding-left:0;
padding-right:0;
}
Edit
See if this helps: http://jsfiddle.net/panchroma/zBeZF/
Good luck!

Background-size CSS3 query

I'm currently using the background-size property in CSS. I have it set to 100%, however I would like it so that if the div reached a minimum height of 800px for it to stop resizing down....is there anyway I can force this?
Thanks in advance!
#test-bg {
background:url('../images/test_bg.jpg') 0 0 no-repeat;
background-size:100%;
width:100%;
height:1900px;
min-height:800px;
position:absolute;
}
I have fixed it by applying a min width! Thanks anyways :)
In CSS2, you get the option of specifying the min-height.
Take a look at the link below and see if it helps you:
http://www.w3schools.com/cssref/pr_dim_min-height.asp

jquery autocomplete list position change

I would like to move position a bit to the left of my Jquery UI suggestion list.
here function and everything work very fine
unfortunately I have no idea how to move that list a bit to left align left about 10px the page is responsive that is why scared that how to move left.
could any one help me how to move it.
thanks in advance :)
I think this is the documentation http://docs.jquery.com/Plugins/Autocomplete/autocomplete.
You can set the style in this class
.ui-menu .ui-menu-item a.ui-state-hover, .ui-menu .ui-menu-item a.ui-state-active
{
margin-left: -10px !important;
}
Try adding this in your CSS and not in the jQuery-ui CSS file
you can add margin-left: -11px; in to the list DIV

Resources