How to Leave Banner at the Right Time

Asked

Viewed 50 times

-3

I am trying unsuccessfully to leave a banner with a shorter height, I have already inspected the code and I believe I have found the code for change, I have put in the body of the page this code:

 
element.style {
    margin-top: 0px;
    margin-bottom: 0px;
    position: absolute;
    overflow: visible;
    height: 417px;
    width: 1903px;
    left: 0px;
}   

But still, the timing is the same, but I’m having trouble solving it. The site can be seen here:

Website

  • 1

    Pq element.style? You should put the element id, class, tag...

  • So, precisely why I posted the question, I don’t know exactly how to correct.

  • But you didn’t even mention which banner this is. Just put a link to your site, which in itself is bad. I think your question lacks more details.

1 answer

1


In the <head> of the HTML code of your page you added

<style> 
        element.style {
            margin-top: 0px;
            margin-bottom: 0px;
            position: absolute;
            overflow: visible;
            height: 417px;
            width: 1920px;
            left: 0px;
        }       
</style>

Element.style concerns CSS styling done through Javascript, so declaring element.style directly in your css code will not work in the absolute majority of cases.

To fix, all you need to do is change element.style to the appropriate selectors, such as div#id1. What I imagine you want to do is reduce or eliminate the red slider occupying the page.

To reduce:

<style>
        section.sec-slider{
            margin-top: 0px;
            margin-bottom: 0px;
            position: absolute;
            overflow: visible;
            height: 417px;
            width: 1920px;
            left: 0px;
        }       
</style>

This applies your style presented in the question with the correct selectors, which breaks the site visually.

To eliminate

<style> 
    section.sec-slider{
        display:none
    }       
</style>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.