Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Support request] Horizontal scrollbar

Home Forums Support Horizontal scrollbar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #342296
    Sharif

    Hi there,
    I use Latex to write mathematical equations. Sometimes equation is long and I want to put it in a box with horizontal scrollbar so my students will be able to view the remaining part of equation. I use this css:

    
    .box{
    	color:#000000;
    	width:100%;
    	box-sizing:border-box;
    	text-align:left;
    	border: dotted 1px #efefef;
    	direction:ltr;
    	line-height:2.8em;
    	overflow-x:auto;
    	padding:5px 5px 5px 5px;
    	background-color:#ffffff;
    }
    

    The problem is that horizontal scrollbar is not visible in mobile browsers. Is there any css to make it visible in mobile browsers?
    Regards,

    #342331
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I don’t believe mobile browsers display scrollbars at all until you’re actually scrolling I’m afraid.

    #342356
    Sharif

    Hi there,
    Yes! you are right.
    Above css adds scrollbar but it is not visible before scrolling.
    I googled and found below css in codepen.io.
    vertical css scrollbar
    I visited above link in chrome mobile browser and scrollbar is visible in mobile browser. Actually could not get my job done to implement it because that css is for vertical scrollbar but I want horizontal scrollbar. Could you please visit that link and if possible make a nice horizontal scrollbar class from it?
    Regards,

    #342516
    Sharif

    I think my topic needs a freshness. Is there anyone to help me?
    Regards,

    #342531
    Leo
    Staff
    Customer Support

    I think this is beyond what we can offer on the support forum here as you can see that there is a lot of custom code involved and it’s not theme or plugin related.

    You can try asking it here: https://stackoverflow.com/

    #342535
    Sharif

    Thanks Leo,
    No Problem. You are right. I asked because thought it will be possible with simple css.
    Regards,

    #342677
    Leo
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.