javascript - Not able to give a specific ul a different css style? -


i have give part of hmtl specific css style:

<div id = "comp_display1" style = "display: none;"> <div class = "ui-widget-overlay ui-front"></div>  <div class="ui-helper-hidden-accessible" role="log" aria-live="assertive" aria-relevant="additions"></div>   <div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front col-xs-3 " style= "height: auto !important;         width: auto !important;         overflow : scroll;     display: inline;     position: absolute;      left: 20%;      z-index: 500;      flex-wrap : wrap;     border: medium none;     border-bottom-right-radius: 4px;     border-bottom-left-radius: 4px;     border-top-right-radius: 4px;     border-top-left-radius: 4px;"       tabindex="-1" role="dialog" aria-describedby="signinpopup" aria-labelledby="ui-id-1">   <div>                 <div class="whitebg">                     <div class="sortingtabs">     <div class="col-xs-1"></div>      <div class="col-xs-2">details</div>     <div class="col-xs-3" id="name1">hotel 1</div>     <div class="col-xs-3" id="name2">hotel 2</div>     <div class="col-xs-3" id="name3">hotel 3</div> </div> <center> <div class="table-responsive wrapper" id="infos">   <div class="row">                 <ul >                     <li class="col-xs-1 compare"><img src="./details_files/experience.png" alt=""></li>                     <li class="col-xs-2" ><strong>total experience</strong></li>                     <li class="col-xs-3" id= "url1">7 year(s)</li>                     <li class="col-xs-3">7 year(s)</li>                     <li class="col-xs-3">7 year(s)</li>                 </ul> </div>           . . . , on until div's have closed 

i want give unorded list particular style css:

  ul li{ display: table-cell;     vertical-align: top;     width: 185px;     border-right: 5px solid #e6e6e6;     border-bottom: 5px solid #e6e6e6;     padding: 10px;     background-color: #fff;}  

i want part of code change. how should label css?

i'm unsure whether understand question, assume mean want target particular ul without editing html , making changes css? if so,you can target specific ul specifying it's parent id, i.e.:

#infos ul li {      display: table-cell;     vertical-align: top;     width: 185px;     border-right: 5px solid #e6e6e6;     border-bottom: 5px solid #e6e6e6;     padding: 10px;     background-color: #fff; }  

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -