Es ist die mobile Ansicht. Die Breite in der Verknüpfung Div ist 100%. Ich möchte den Inhalt dieses div horizontal scrollen, ohne die ganze Seite zu scrollen. Unten ist der HTML-Code.Horizontaler Bildlauf Inhalt in fester Breite div
<div class="links">
<ul>
<li>Home</li>
<li>Private Equity</li>
<li>Venture Capital</li>
<li>M&A</li>
<li>Markets</li>
<li>Industry</li>
<li>Economy</li>
</ul>
</div>
und CSS
.links{
width: 100%
ul{
padding:0px;
margin:0px;
@media only screen and (max-width : 480px){
white-space: nowrap;
}
}
ul li{
list-style-type: none;
display: inline-block;
padding:8px 30px;
text-transform: uppercase;
font-family: $roboto;
font-size: 20px;
font-weight: 300;
font-stretch: condensed;
line-height: 1;
border-right:1px solid #000;
&:last-child{
border-right:0px;
}
}
}
Danke @Patrick. Das war eine große Hilfe. – amansoni211
Kein Problem! Ich möchte auch anmerken, dass die Antwort von @scaisEdge auch das Gleiche bewirkt. – Patrick