Answers for "how to make horizontal scroll website"

CSS
0

css horizontal scroll

.scroll{
	overflow-x: scroll;
	overflow-y: hidden;
	height: 80px;
  	white-space:nowrap
}
Posted by: Guest on March-03-2021
0

horizontal scroll

.scrolling-wrapper-flexbox {  display: flex;  flex-wrap: nowrap;  overflow-x: auto;  .card {    flex: 0 0 auto;  }}
Posted by: Guest on April-15-2021
0

Horizontal scroll on the web page.

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;

public class HorizontalScroll {

    WebDriver driver;
    @Test
    public void ScrollHorizontally() {
   	    WebDriverManager.chromedriver.setup();
        driver = new ChromeDriver();

        JavascriptExecutor js = (JavascriptExecutor) driver;

        driver.get("URL");
        WebElement Element = driver.findElement(locator);

        //This will scroll the page Horizontally till the element is found		
        js.executeScript("arguments[0].scrollIntoView();", Element);
    }
}
Posted by: Guest on June-07-2021

Code answers related to "how to make horizontal scroll website"

Browse Popular Code Answers by Language