0

I'm trying to make an horizontal layout, though the UL element keeps clipping and putting it back on new line.

Like this:

enter image description here

What I want is that everything is on a single line that without having to set the width manually.

The site can be seen here: http://prv.sampettersson.com

2
  • And what have you tried? Commented Sep 8, 2013 at 9:59
  • @Pietu1998 setting the width manually (not ideal), setting the width to 100%, setting the width to auto, setting html, body to 100% (didn't do anything), and some more... Commented Sep 8, 2013 at 10:00

2 Answers 2

3

Add white-space:nowrap; on the parent element

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, that seems to be the better solution
0

Something like this seems to do that:

CSS

ul{
list-style: none;
height: 200px;
overflow: hidden;
width: 20000px;
}

1 Comment

Somewhat what i did to begin with. I can't do that as their are multiple element containing different amounts of photos. What I need is to have the element set to 100% or something like that (which is what doesn't work)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.