Is there a way to show/hide hiddencar div based on what the slider is on? Im not sure how to use :target selectors and I believe it can be done with css alone

yes show div no hide div

```css
     .onoffswitch4 {
        position: relative; width: 101px;
        -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    }
    .onoffswitch-checkbox4   {
        display: none;
    }
    .onoffswitch-label4 {
        display: block; overflow: hidden; cursor: pointer;
        border: 2px solid ; border-radius: 11px;
    }
    .onoffswitch-inner4 {
        display: block; width: 200%; margin-left: -100%;
        transition: margin 0.3s ease-in 0s;
    }
    .onoffswitch-inner4:before, .onoffswitch-inner4:after {
        display: block; float: left; width: 50%; height: 38px; padding: 0; line-height: 38px;
        font-size: 13px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
        box-sizing: border-box;
    }
    .onoffswitch-inner4:before {
        content: "No";
        padding-left: 14px;
        background-color: #34A7C1; color: #FFFFFF;
    }
    .onoffswitch-inner4:after {
        content: "Yes";
        padding-right: 14px;
        background-color: #EEEEEE; color: #999999;
        text-align: right;
    }
    .onoffswitch-switch4 {
        display: block; width: 9px; margin: 14.5px;
        background: #FFFFFF;
        position: absolute; top: 0; bottom: 0;
        right: 59px;
        border: 2px solid ; border-radius: 11px;
        transition: all 0.3s ease-in 0s; 
    }
    .onoffswitch-checkbox4:checked + .onoffswitch-label4 .onoffswitch-inner4 {
        margin-left: 0;
    }
    .onoffswitch-checkbox4:checked + .onoffswitch-label4 .onoffswitch-switch4 {
        right: 0px; 
    }
```

```html
   <div id="contact_phone">Do you have a car?: *<br>
     <div class="onoffswitch4">
        <input type="checkbox" name="onoffswitch4" class="onoffswitch-checkbox4" id="myonoffswitch4" checked>
        <label class="onoffswitch-label4" for="myonoffswitch4">
            <span class="onoffswitch-inner4"></span>
            <span class="onoffswitch-switch4"></span>
        </label>
    </div>

<div id="hiddencar">       

 <div id="contact_name">Year: *<br>
 <input id="element_4" name="name" class="element text medium" type="text" maxlength="50" value="" placeholder="FULL NAME"/>
    </div> 

 <div id="contact_phone">Make: *<br>
 <input id="element_4" name="name" class="element text medium" type="text" maxlength="50" value="" placeholder="FULL NAME"/>
 </div>    

     <div id="contact_phone">Model: *<br>
     <input id="element_4" name="name" class="element text medium" type="text" maxlength="50" value="" placeholder="FULL NAME"/>
    </div>   

</div><!--hiddencar-->

   </div><!--contact_phone-->
```

Is there a way to show/hide hiddencar div based on what the slider is on? Im not sure how to use :target selectors and I believe it can be done with css alone

yes show div no hide div