CSS horizontal scroll

0 votes
I'm attempting to make a div containing a number of just horizontally scrollable photos. It should be similar to this LINK;
To prevent the photographs from "word-wrapping," the div> containing them must be given a width in order to do the aforementioned. If I don't enter a width, it appears as follows: LINK
How can I avoid inserting a set width considering that the images may vary using CSS?
Jun 23, 2022 in CSS by Edureka
• 12,890 points
218 views

1 answer to this question.

0 votes

You can use display:inline-block with white-space:nowrap.

answered Jun 28, 2022 by Edureka
• 11,450 points

Related Questions In CSS

0 votes
0 answers

CSS background image that can scroll

I'm attempting to make a backdrop image ...READ MORE

Jul 5, 2022 in CSS by Edureka
• 12,890 points
136 views
0 votes
0 answers

Table scroll with HTML and CSS

I have a table like that which ...READ MORE

Jul 8, 2022 in CSS by Edureka
• 12,890 points
799 views
0 votes
0 answers

horizontal line and right way to code it in html, css

I need to draw a horizontal line ...READ MORE

Jul 22, 2022 in CSS by Edureka
• 12,890 points
56 views
0 votes
1 answer

Vertical and horizontal align (middle and center) with CSS?

There are many methods : Center horizontal and ...READ MORE

answered Aug 3, 2022 in CSS by Tanishqa
• 700 points
403 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
5,898 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,873 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
360 views
0 votes
1 answer

What is the difference between span and div?

The div should be used to wrap sections of ...READ MORE

answered Jan 16, 2020 in Web Development by Niraj

edited Jan 21, 2020 by Niroj 2,548 views
0 votes
1 answer

Is there any way to colorize a white PNG image with CSS only?

Filters can be used with -webkit-filter and ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 11,450 points
641 views
0 votes
1 answer

How do I give text or an image a transparent background using CSS?

Use either a semi-transparent PNG or SVG ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 11,450 points
116 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP