css – Ajuste de div pequeños en div padre

Tengo dos div con display inline-block para que se muestren uno al lado del otro. Dentro de cada uno de ellos, tengo div más pequeños con float left para que se vayan mostrando a la izquierda. También tengo líneas hr para separar los div entre ellos

Aquí el HTML y CSS

#div1, #div2 {
    border: 1px solid black;
    width: 300px;
    height: 200px;
    display: inline-block;
    /*float: left;*/
}

#div1 div, #div2 div {
    border: 1px solid black;
    /*display: inline-block;*/
    float: left;
    width: 50px;
    height: 25px;
}
.clear {
    clear: left;
}
<div id="div1">
    <div>Div 1</div>
    <div>Div 2</div>
    <div>Div 3</div>
    <hr class="clear">
    <div>Div 4</div>
    <div>Div 5</div>
    <div>Div 6</div>
</div>
<div id="div2">
    <div>Div 1</div>
    <div>Div 2</div>
    <div>Div 3</div>
    <hr class="clear">
    <div>Div 4</div>
    <div>Div 5</div>
    <div>Div 6</div>
</div>

Primera pregunta. La línea hr tiene un pequeño margen que la separa de los div pequeños de abajo, pero no de los de arriba, ¿por qué me sale pegada la línea a los de arriba y cómo los separo?

Segunda pregunta. Si por ejemplo meto una línea entre los div pequeños div 1 y div 2 o entre div 4 y div 5, ya no tengo los div padres div1 y div2 alineados en la misma línea. Si a los padres les pongo un float left ya no me pasa… ¿se puede hacer lo mismo pero con el display inline block en lugar de usar float left en los padres?

Gracias

javascript – CSS – Cómo hacer responsive un google bar-chart dentro de un div?

Estoy implementando el bar-chart del siguiente demo:
https://codepen.io/flopreynat/pen/BfLkA

El mismo consiste en un div que contiene el gráfico de barras (‘chart_div1’) y su padre cuyo div contiene la clase ‘ROW’.

Sin embargo, si quiero colocar todo ello dentro de un div cuyo estilo es max-widht:900px y margin-left:auto y margin-right:auto para centrarlo, el responsive no funciona correctamente. (No toma el tamaño total dentro de los 900 pixeles y se compacta)

Alguna ayuda?

html – Is it a good practice to wrap buttons on a div?

html – Is it a good practice to wrap buttons on a div? – Software Engineering Stack Exchange

theme development – How to Multiple div hide and show with Kirki Multicheck?

Kirki Multicheck ( How do I get results on the front page?)
I want to control HTML code(Multiple div hide and show) through multiple checkboxes.

Admin Panel code:–

Kirki::add_field( 'theme', (
    'type'        => 'multicheck',
    'settings'    => 'test_multicheck_setting',
    'label'       => esc_html__( 'My Control', 'kirki' ),
    'section'     => 'single_widget',
    'default'     => array('design_one', 'design_two'),
    'priority'    => 10,
    'choices'     => (
        'design_one'   => esc_html__( 'Column', 'kirki' ),
        'design_none'  => esc_html__( 'None', 'kirki' ),
        'design_two'   => esc_html__( 'Row', 'kirki' ),
    ),
) );

Frontend code:

<?php if ( Kirki::get_option( 'cactus_option', 'test_multicheck_setting' ) == 'design_one' ) {  ?>

    <h1>html Code One</h1>

<?php  } ?>

<?php if ( Kirki::get_option( 'cactus_option', 'test_multicheck_setting' ) == 'design_two' ) {  ?>
  <H2> Html code two</H2>
<?php  } ?>

<?php if ( Kirki::get_option( 'cactus_option', 'test_multicheck_setting' ) == 'design_none' ) {  ?>
    <h3>Html code three</h3>
<?php  } ?>

8 – HTML W3C validation error with BEF: novalidate and name on div

I’m doing a 508/WCAG scan of my site and using the W3C Nu HTML checker. I’m getting two errors both related to unallowed attributes on div elements related to Better Exposed Filters.

  1. Attribute novalidate not allowed on element div at this point.
<div class="views-exposed-form bef-exposed-form search-form block block-views block-views-exposed-filter-blocksearch-resources-page-1" novalidate="novalidate" data-drupal-selector="views-exposed-form-search-resources-page-1" id="block-exposedformsearch-resourcespage-1-2">
  1. Attribute name not allowed on element div at this point.
    <div data-drupal-selector="edit-sort-bef-combine" id="edit-sort-bef-combine--2" name="sort_bef_combine" class="form-select bef-links">
      <ul>
        <li><a href="http://drupal.stackexchange.com/technical-assistance-resources" id="edit-sort-bef-combine-search-api-relevance-desc" name="sort_bef_combine(search_api_relevance_DESC)" class="bef-link bef-link--selected">Relevance</a> </li>
        <li><a href="http://drupal.stackexchange.com/technical-assistance-resources?sort_bef_combine=field_posted_date_DESC" id="edit-sort-bef-combine-field-posted-date-desc" name="sort_bef_combine(field_posted_date_DESC)" class="bef-link">Posted date (newest first)</a> </li>
        <li><a href="http://drupal.stackexchange.com/technical-assistance-resources?sort_bef_combine=field_posted_date_ASC" id="edit-sort-bef-combine-field-posted-date-asc" name="sort_bef_combine(field_posted_date_ASC)" class="bef-link">Posted date (oldest first)</a></li>
      </ul>
    </div>

I’m not certain these are actually coming from BEF, I couldn’t find any references to these when searching the BEF code or the issues queue on the project page.

Any ideas? And should I consider this a failure for the WCAG parsing requirement?

javascript – Print the content part of DIV in SharePoint 2013

I`ve researched a lot and spent more than 24 hours on it, but what ever reason adding the following in Content Editor WebPart on SharePoint 2013 List page, doesn’t does the job as expected.
Expectation: To Print the content and no blank pages.

If I just give the print command with no Javascript or CSS code to customized printing, then its prints blank pages apart from the original content.

Following code added to Content Editor WebPart –

<script type="text/javascript" src="https://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"> </script><script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data) 
    {
        var mywindow = window.open('', 'my div', 'height=auto,width=600');
        mywindow.document.write('<html><head><title>my div</title>');
        /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.print();
        mywindow.close();

        return true;
    }

</script>

<input type="button" value="Print Div" onclick="PrintElem(&#39;#WebPartWPQ2&#39;)"/>​​​​​​​​​

Please suggest where am i wrong?
Also, I`ve tried with having the print.css with @media print function, but that print with extra blank pages, due to which I went for printing only the DIV content ( in order to avoid blank page)

html – How to make a div overflow on scroll inside a div with flex:1

I have some source code in <pre> tags which I would like to scroll when the browser window is resized. The pre tags are contained in a flex box, with the containing div set to flex: 1.

How can I make the code scroll horizontally?

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Page Title</title>
<meta name="viewport" content="width=device-width,initial-scale=1">

<body>
  <div style="display: flex;">
    <div style="flex: 1;">
      <div style="max-width: 100%; overflow-x: auto; min-width: 0;">
        <pre>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
        </pre>
      </div>
    </div>
  </div>
</body>

</html>

javascript – Transformar div paginada em PDF

Tenho umas DIV onde dentro dela, existe varias outras div montando um Card(HTML), sendo que esses cards são paginados através do Jquery twbsPagination.

A ideia é, como eu faria pra utilizar o jsPDF e transformar cada pagina em um arquivo PDF horizontal onde contenha os 10 cards.

Segue o PRINT de como está sendo exibido e a estrutura do código de cada card.

        <!-- CARTÃO -->
        <div class="flip-container center float-left" id="flip-toggle">
            <div class="print-flipper">

                <div class="print-front">
                    <b class="name-title">Wladi Veras</b>
                    <span class="sub-title">Desenvolvedor Web</span>

                    <img class="element-avatar"
                        src="https://pt.stackoverflow.com/{{ asset("assets/media/users/100_10.jpg') }}"
                        width='90' height='100' ">

                        <img style=" position:absolute"
                        src="https://pt.stackoverflow.com/{{ asset("assets/media/cards/FRENTE.png') }}"
                        width="213.54" height="332.59" />
                </div>
            </div>
        </div>
    </div>

inserir a descrição da imagem aqui

python 3.x – Scraping infomation from a div tag inside of a div tag

I have been trying to web scrape from this website: https://octane.gg/events/e83e-rlcs-x-championship-europe/stats/players

I want to get specific ratings but i get nothing when i execute this code:

from bs4 import BeautifulSoup
import requests

result = requests.get("https://octane.gg/events/e83e-rlcs-x-championship-europe/stats/players")
src = result.content
soup = BeautifulSoup(src, 'lxml')

match = soup.find('div', class_='css-gm45eu')
print(match)

output: None

How can I scrape what is in that class?

Div de un tamaño predeterminado y con opción de ampliar

Estoy mostrando los comentarios de un blog, pero si existen muchos comentarios quisiera que solo sean visibles por ejemplo 5 y que exista una etiqueta para visualizar todo los restantes si el usuario lo desea.

Solo tengo la estructura que me carga todos los registros.

<div class="mt-5" id="review_content">
    <div class="row mb-3">
        <div class="col-sm-1">
            ...
        </div>
        <div class="col-sm-11">
           ...
        </div>
    </div>
    <div class="row mb-3">
        <div class="col-sm-1">
            ...
        </div>
        <div class="col-sm-11">
            ...
        </div>
    </div>
</div>

Ahora quisiera colocarle un limite de .row por decirlo de alguna manera, como se podría hacer eso?

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheapest USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Proxyti.com Buy Quality Private Proxies