css – Como arreglar el select html para que quede bien el formulario?

Tengo un form pero por alguna razon el select me descuadra el input de abajo y no se como hacer para que quede bien:

introducir la descripción de la imagen aquí

aqui les pongo el codigo:

html:

<div id="register_new_product" v-if = "hide == true">
        <section class = "register_product">
            <div class = "blocks">   
                <label class = "register_new_product_label">Product type:</label>
                <select class = "register_new_product_select" v-model="type"><option value="syrup">Syrup</option><option value="pills">Pills</option><option value="capsules">Capsules</option><option value="cream">Cream</option><option value="other">Other</option></select>
            </div>
            <div class = "blocks">
                <label class = "register_new_product_labelt" >Product's name:</label>
                <input class = "register_new_product_input" type="text" name="name" v-model="name"/>
            </div>
            <div class = "blocks">
                <label class = "register_new_product_labelt">Quantity per box:</label>
                <input class = "register_new_product_input" type="text" name="quantity_box" v-model="quantity_box"/>
            </div>
            <div class = "blocks">
                <label class = "register_new_product_labelt">Boxes per pallet:</label>
                <input class = "register_new_product_input" type="text" name="box_pallet" v-model="box_pallet"/>
            </div>
            <div class = "blocks">
                 <button @click = "registerproduct" type="button"> Register new product</button>
           </div>
        </section>
    </div> 

css:

.blocks {
margin-bottom: 15px;
}

.register_new_product_label {
display: inline-block;
text-align: right;
float: left;
}

.register_new_product_input {
display: inline-block;
text-align: left;
float: right;  
width: 50%;  
}


.register_new_product_select {
float: right; 
width: 50%;
}

estoy jugando con los valores pero no encuentro forma de que el products’s name quede normal, ademas, hay alguan forma de que el label y el input no esten tan alejados uno del otro? gracias :]

css – Scroll on iframe gets disabled (perfect-scrollbar)

I am using vue-perfect-scrollbar in an application.

Problem: scrollcomponent from vue-perfect-scrollbar gets disabled when I try to use iframe with it.

The scroll works perfectly over scroll area , but not over the iframe.

enter image description here

I have found a below workaround which uses the pointer-events

.disable-using-pointer-events {
  pointer-events: none !important;
}

enter image description here

This is what i have tried till now
https://codesandbox.io/s/scroll-issue-cl8pq

Is there any other workaround other than using pointer-events?

Any suggestions tips would be helpful

javascript – Problema com carousel HTML E CSS

.slider {
  width: 300px;
  text-align: center;
  overflow: hidden;
}

.slides {
  display: flex;
  
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  
  
  
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
  /*
  scroll-snap-points-x: repeat(300px);
  scroll-snap-type: mandatory;
  */
}
.slides::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.slides::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 10px;
}
.slides::-webkit-scrollbar-track {
  background: transparent;
}
.slides > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  margin-right: 50px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}
.slides > div:target {
/*   transform: scale(0.8); */
}
.author-info {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.75rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}
.author-info a {
  color: white;
}
img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
}
                        <div class="slider">
                            <a href="#slide-1">1</a>
                            <a href="#slide-2">2</a>
                            <a href="#slide-3">3</a>
                            <a href="#slide-4">4</a>
                            <a href="#slide-5">5</a>

                            <div class="slides">
                                <div id="slide-1">
                                  1
                                </div>
                                <div id="slide-2">
                                  2
                                </div>
                                <div id="slide-3">
                                  3
                                </div>
                                <div id="slide-4">
                                  4
                                </div>
                                <div id="slide-5">
                                  5
                                </div>
                            </div>
                        </div>

css – Colocar elementos lado a lado com flex

Estou aprendendo a trabalhar com o flex e tenho tentado colocar elementos lado a lado mas ainda não compreendo muito bem para que cada tag serve. Alguem poderia me explicar para que servem as tags ‘display’,’flex’, ‘justify-content’ e ‘align-items’

Remove CSS Attribute by Overriding CSS in Child Theme

I’m assuming that this is happening because the style sheet will only
override the attributes that exist in the parent theme and child
theme; thus, leaving attributes that are NOT in the child theme, in
the parent theme.

That’s not how it works. There’s nothing special about WordPress parent theme and child theme stylesheets. They’re just standard CSS style sheets, and they follow the same rules as any two stylesheets loaded on any other web page.

If you want to “remove” a style from one stylesheet in subsequent stylesheet, you need to provide a new value for it. If you have a position: relative; property, and you want to reset it to its default value you need to use initial:

.mvp-blog-story-img img {
    margin: 0 auto;
    width: 100%;
    min-width: 0px;
    position: initial;
}

Note that initial doesn’t work in Internet Explorer, so if IE support is required, you will need to find out what the default value is and set it to that. For position, that’s static:

.mvp-blog-story-img img {
    margin: 0 auto;
    width: 100%;
    min-width: 0px;
    position: initial;
}

Note that if the element’s position is static then left and right won’t do anything, so you don’t need to reset those.

To find the default values for properties, the MDN web docs CSS reference is a good resource.

html – ¿En css grid porque las cuadriculas desbordan el contenedor cuando tengo imagenes dentro de divs?

Estoy intentando hacer una galeria de imagenes con css grid pero las cuadriculas desbordan el contenedor, cuando solo pongo divs dentro del container todo va bien, el problema es cuando anido imagenes dentro de los divs.

<div class="container">
    <div class="item"><img src="https://es.stackoverflow.com/img/im1.jpg" alt=""></div>
    <div class="item"><img src="img/im2.jpg" alt=""></div>
    <div class="item"><img src="img/im3.jpg" alt=""></div>
    <div class="item"><img src="img/im4.jpg" alt=""></div>
    <div class="item"><img src="img/im14.jpg" alt=""></div>
    <div class="item"><img src="img/img.jpg" alt=""></div>
    <div class="item"><img src="img/img0.jpg" alt=""></div>
    <div class="item"><img src="img/img5.jpg" alt=""></div>
    <div class="item"><img src="img/img6.jpg" alt=""></div>
    <div class="item"><img src="img/img7.jpg" alt=""></div>
    <div class="item"><img src="img/img8.jpg" alt=""></div>
    <div class="item"><img src="img/img9.jpg" alt=""></div>
</div>

Responsive web design and Development for $95

Responsive web design and Development

Please Message me BEFORE placing order to discuss your project.

I will design and develop fully dynamic & responsive Website or Landing Page for you that will be eye catching, responsive, Google-friendly at affordable rates.

I am a Website Developer having 3+ years of professional experience in this Industry. My focus is customer satisfaction, precision, accuracy and quick services.

Why Hire Me?

100% Client Satisfaction Guaranteed,

3+ years’ experience in Web Design and development,

Fluent in English and Project Understanding,

Affordable Price,

Free Consultation,

Always Available,

.

Como quebrar texto dentro do label com CSS

Como quebrar texto dentro do label com CSS?


<label for='chps' style='position:relative;width:265px;word-break:break-word;overflow:hidden;'>
Lorem ipsum ante mi vel sagittis libero aliquam quisque praesent aliquet suspendisse etiam praesent, senectus aenean sapien mi dapibus sit aptent eu consequat pellentesque est.
</label>

inserir a descrição da imagem aqui

<input type='checkbox' id='chps' name='psoc[]' value='xxx'>
<label for='chps' style='position:relative;width:200px;word-break:break-word;overflow:hidden;'>
Lorem ipsum ante mi vel sagittis libero aliquam quisque praesent aliquet suspendisse etiam praesent, senectus aenean sapien mi dapibus sit aptent eu consequat pellentesque est.
</label>