Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to center horizontally the li elements
    primarykey
    data
    text
    <p>I am using domtab on my <a href="http://exerion.comule.com/prochaine.html" rel="nofollow">site</a>, but for some reasons I can't center the li elements (the ones with ver1, ver2, TOUS LES FILMS, AFFICHAGE HORAIRE, ... written in them) or the ul block.</p> <p>Here is the code relative to the domtab:</p> <pre><code> #domtab_main{ width:600px; margin:20px auto; position:relative; /*height: 100px;*/ } ul.domtabs{ position: relative; /*float:left;*/ /*width:100%;*/ width: 600px; /*margin : 0 auto;*/ /*padding-left: 110px;*/ font-family: MS Courier New; font-size: 17px; /*padding:0;*/ /*text-align:center;*/ padding: 0px; /*list-style: none;*/ margin-right: auto; margin-left: auto; margin-top: 0px; margin-bottom: 0px; left: auto; } ul.domtabs li{ list-style:none; float:left; padding:0 .5em 0 0; } ul.domtabs a:link, ul.domtabs a:visited, ul.domtabs a:active, ul.domtabs a:hover{ /*width: 170px;*/ padding:10px; display:block; /*background:#666; color:#ccc;*/ height:3em; /*font-weight:bold;*/ text-decoration:none; color:#f0f0f0; background: -moz-linear-gradient(top, #117586 0%, #158CA1 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#117586), color-stop(100%,#158CA1)); background: -webkit-linear-gradient(top, #117586 0%,#158CA1 100%); background: -o-linear-gradient(top, #117586 0%,#158CA1 100%); background: -ms-linear-gradient(top, #117586 0%,#158CA1 100%); background: linear-gradient(top, #117586 0%,#158CA1 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#117586', endColorstr='#158CA1',GradientType=0 ); } div.domtab div{ clear:both; width:auto; /*background:#696;*/ color:#000; padding:1em 3em; padding-bottom: 0; } </code></pre> <p>What I put in comment is what I tried. Is there a solution to this please ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload