• Hello,

    I’m using google chrome and changed the css with java script consol.

    there is this code that i should add but i tried a lot of times with different ways on index.php but does’t work anymore.

    this is css :element.style {
    width: 900px;
    padding-right: 1px;
    padding-left: 1px;
    border-left-width: 1px;
    margin-left: 0px;
    left: 105px;
    }

    and this is Html :

    <div class=”main-content” role=”main”><div class=”site-content page-wrap” style=”
    width: 900px;

    padding-right: 1px;
    padding-left: 1px;
    border-left-width: 1px;
    margin-left: 0px;
    left: 105px;
    “>

    please tell me how to add this code and change my theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ershads

    (@ershads)

    I used this Code after head in wp files.but after that my site is not responsive anymore.

    please help me.

    <style>
    .site-content {
    width: 900px;
    padding-right: 1px;
    padding-left: 1px;
    border-left-width: 1px;
    margin-left: 0px;
    left: 105px;
    }
    </style>

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Element.style is just something Chrome’s tool tells you to indicate that the element has an attribute named “style” and within that style are some CSS rules. You don’t want that, right?

    Thread Starter ershads

    (@ershads)

    Actually I put this code to Header.php and It works. But it is not responsive.

    pleas help me with this

    Awad

    (@awadaljishi)

    Hi,

    Remove any recent modifications you made.
    Try this:

    .site-content page-wrap {
    width: 900px;
    padding-right: 1px;
    padding-left: 1px;
    border-left-width: 1px;
    margin-left: 0px;
    left: 105px;
    }

    I recommend you create a child theme before making any changes to your theme .
    https://codex.ww.wp.xz.cn/Child_Themes

    The code above should be places inside style.css in your child theme.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘how to add element.style css’ is closed to new replies.