É possível deixar o que fiz como na foto ? (Não sei nada de HTML e CSS)

*{
   margin: 0;
   padding: 0;   
}

body{
    background-color: #9AA2EB;
}

#logo{
height: 292px;
width: 295px;
left: 32px;
top: 40px;
border-radius: 0px;

}
#chat{
    width: 600px;
    height: 450px;
    opacity: 0.5;
    border: 12px solid rgba(255, 255, 255, 0.6);     
}

input(type=text) {

position: absolute;
width: 1019px;
height: 180px;
left: 360px;
top: 788px;
opacity : 0.5;
    } 

form input(type='submit'){
        
position: absolute;
width: 106px;
height: 109px;
left: 202px;
top: 823px;
opacity : 0.5;


}
<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>#</title>
    <link rel="icon" href="https://pt.stackoverflow.com/./public/images/chat.png" />
    <link rel="stylesheet" href="./public/css/style.css">
    
</head>
<body>

    <header>
        <img id="logo" src="https://pt.stackoverflow.com/./public/images/chat.png" alt="Logo Site"/>
    </header>

    
    <div id="chat">
     <form>
         <input type='text' id='texto_mensagem' name='texto_mensagem' />
         <input type='submit' value='Send' />
     </form>

    </div>


</body>
</html>

php – Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?

Is this a proper way to load CSS files into my WordPress child theme?

add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'case_studies_styles' );
add_action( 'wp_enqueue_scripts', 'about_styles' );

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'child-style', get_stylesheet_uri(),
        array( 'parenthandle' ), 
        wp_get_theme()->get('Version') // this only works if you have Version in the style header
    );
}

function case_studies_styles() {
    wp_enqueue_style( 'child-casestudies', get_stylesheet_directory_uri() . '/casestudies.css', array(), rand());
}

function about_styles() {
    wp_enqueue_style( 'child-about', get_stylesheet_directory_uri() . '/about.css', array(), rand());
}

I’m asking because I’ve asked some people to try to load my site, and some of them don’t get the stylesheets at all and just get the blank HTML code.

Also, in the beginning of all CSS files, I have this beginning. Every CSS file has a different version (1.2,1.1,1.0)

/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Template:     generatepress
 Version:      1.2
*/

CSS for custom Google search box

On the site I’m trying to build: https://www.dynomotion.com/test/index-search.htm the cursor does not focus within the search box. Does anybody know I have done wrong?

For the styling of the search, I use the following css:

#cse-search-form {
    position: relative;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #f2f2f2;
    padding: 3px;  
}
  

.gsc-search-box-tools .gsc-search-box .gsc-input .gsc-input-box,.gsc-search-box-tools
.gsc-search-box .gsc-input .gsc-input-box-focus {
      height: 15px;  
      -webkit-border-top-left-radius: 3px;
      -webkit-border-bottom-left-radius: 3px;
      -moz-border-radius-topleft: 3px;
      -moz-border-radius-bottomleft: 3px;
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
      border: 1px solid #dadada;
      padding: 3px;
}

Por que o meu CSS não está funcionando em nenhum navegador?

Eu fiz o download de uma pasta (mais especificamente, desse site: https://www.free-css.com/free-css-templates/page260/greeno) para utilizar um molde de HTML. Quero fazer um novo site com base nesse design, mas ao abrir no meu navegador, não carrega o conteúdo de CSS, fica tudo desformatado.

Fiz o teste com outros arquivos e outras produções minhas e novamente, o CSS não carrega! Alguém poderia me ajudar, por favor? Comecei há pouco tempo os estudos de programação.

css – Failed to send HTTP request body

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

How to override preprocessed CSS element which is !important

The preprocessed css [/public_html/var/view_preprocessed/pub/static/frontend/Pearl/weltpixel_custom/en_US/css] is overriding my custom css file because it have !important. It happens only on the large screens. How to fix it?

enter image description here

errors – My CSS suddenly doesn’t load anymore

I’ve did some small changes on my CSS, nothing crazy, uploaded them to my website. Cleared my cache and suddenly, the website doesn’t show my custom styles.

Website: http://experienceantwerp.be/

My styles are included in the enqueue.php file, but it always worked.

if (!function_exists('understrap_scripts')) {
    /**
     * Load theme's JavaScript and CSS sources.
     */
    function understrap_scripts()
    {
        // Get the theme data.
        $the_theme = wp_get_theme();
        $theme_version = $the_theme->get('Version');

        wp_enqueue_style('slider-slider-styles', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css');
        wp_enqueue_style('lity-style', 'https://cdnjs.cloudflare.com/ajax/libs/lity/2.4.1/lity.min.css');
        $css_version = $theme_version . '.' . filemtime(get_template_directory() . '/css/theme.min.css');
        wp_enqueue_style('understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version);

        }
    }
} // endif function_exists( 'understrap_scripts' ).

add_action('wp_enqueue_scripts', 'understrap_scripts', 10);

If I check my source code in the browser, it seems that the slider-slider-styles and lity-style are loaded, but not my styles “understrap-styles”.

The file is available on the server because I can directly open the file in my browser.

Enable specific CSS Code for Visitors and specific Roles

how i can enable an specific css code for visitors and an specific user role

for example thsi code:

input[type=radio] {
border: 1px solid !important;
}

sharepoint enterprise – Need help with layout using custom CSS and JS. Want to lock down page and have web part zones at certain points

Apologies for the awful title.

I’ll try to explain this.

I have a standard page which was blank. On this I added some custom CSS and JS and make an accordion.
I am using this as a base.

The first problem I run into is if I edit the page and make changes (having to expand the accordion to get to certain bits of text) the accordion breaks and jams. It stays open and no longer works, so I have to roll back the page.

The only way I got around this was using Designer to just add text in. This causes more troubles as I’m not a coder. So when I try to add formatting, bold, tables or bullets in Designer, it’s all greyed out. Sometimes it isn’t. So confusing.

I suppose what would be handy perhaps is to have the accordion “locked” on the page. Then in each of the sections it has a web part zone. Then I could add my own custom parts when I needed them, without fear of the accordion breaking. If I need to change titles or icons, I could dive into designer to make those minor changes.

Any advice and help here is appreciated.

css – Sticky Menu with Hide the sticky menu on scroll down

I am trying to add a sticky menu on my webpage. The sticky menu has to go away if I scroll down and It has to appear when I scroll up. I have gone over the internet and found some answers. But it is not working as expected. I tried 2 cases.

Case 1:
I tried below CSS and JS:

CSS:

@media (min-width: 769px) {
    .main-navigation {
        position: sticky;
        top: 0px;
        z-index: 99;
    }
}

JS:

jQuery(document).ready(function( $ ){
  var previousScroll = 0;
  $(window).scroll(function(){
       var currentScroll = $(this).scrollTop();
       
       if (currentScroll >= previousScroll){
           $('#primary-menu').addClass('menu-toggle');
       } else {
           $('#primary-menu').removeClass('menu-toggle');
       }
       previousScroll = currentScroll;
    });
  
});

When I try the above code, it is working well but sometimes the sticky menu is flickering like a flashlight.

Then I tried the next case.

Case 2:

CSS:

@media (min-width: 769px) {
    .main-navigation {
        position: fixed;
        top: 0px;
        width:100%;
        z-index: 99;
    }
}

JS:

jQuery(document).ready(function( $ ){
  var previousScroll = 0;
  $(window).scroll(function(){
       var currentScroll = $(this).scrollTop();
       
       if (currentScroll >= previousScroll){
           $('#primary-menu').addClass('menu-toggle');
       } else {
           $('#primary-menu').removeClass('menu-toggle');
       }
       previousScroll = currentScroll;
    });
  
});

In this case, it is not flickering. But it is overlapping with the header. Please look at the image here.

Actually, the menu has to come after the header. Can anyone help me to solve this?