Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

One page, horizontal scrolling, liquid design. With images!

Featured Replies

 

the title allready says it. I am currently working on a liquid design within a one-page horizontal scrolling design. which surprisingly doesnt give that much complications, the is just one thing I can't figure out. Perhaps I should explain what I am working on first.

What did I want to achieve?

.contentwrapper is supposed to make the positioning of .content and #manhome easier. It should by all means stay inbetween the logo and the line that marks the footer. which is not really a problem, usually, were it not that both have position:fixed because they have to stay throughout the scrolling, and thus they are not quite helping.

the bastards..

The problem:

upon resizing the window, especially making it wider, the man dares setting foot past the line. or on top of the line.

live:
-- edit: www. thijsch .nl /4people

Edited by Tieskevo

Firstly, I know its not what you asked but it's hard to scroll as the .content box is above the navigation. The z-index on .content should be lower than that of the navigation.

 

Anyway, the man won't stay where he is supposed to because you used percentages and position:relative. If you want him to stay in his box (.contentwrapper) you need to position him absolutely. Remember percentages are fluid so its normal that they change when you resize the browser window.

 

I hope that helps.

  • Author

I know it only works on the homepage correctly yet, because the other pages don't even have the wrapper yet. nav doesnt have any z-index because the content should noway ever get over there, and .contentwrapper will prevent it from going there. So thats no problem, but thanks.

 

the resizing itself is not the problem, it is intended, but yeh I suppose I could position the image absolutely to the bottom of the wrapper, this is something I have allready tried, but because the wrapper tends to go over the line at wider resolutions (which is weird because it has a percentage height) the image will do so too.

 

What I recently changed, (not on live version) was reducing the height percentages, and up the padding percentages, which makes it scale slightly better. moving the problem to only the widest of resolutions. 4:3 ratio's work fine, 16:9 works fine too now. but anything wider will cause trouble.

 

edit:
Rephrase: The height of my wrapper changes as my browser window widens

 

edit 2: New css now on live version. (changes in post)

Edited by Tieskevo

  • Author

I don't like double posting, but I'm going to bump it, since I am still working on this problem, and I got some new insights, that might help you help me solve this little puzzle.

 

First i though the problem lies with the image, and the way it is scaled. that it somehow still scaled the picture in height as the viewport's width increased. Upon checking the pixel value output, it didnt seem to change at all when resizing the width of the window, which is in fact exactly how it should be.

 

I would like you to hear your opinions on the following possible solutions; and how to best approach them.

elastic design with em - might be a better approach but is the full-screen maintainable?


getting the view port dimensions with JS, and incorporating them into the css - I allready see few drawbacks here, one anyone with javascript disabled wont be able to view the website, and second: it will require a refresh of the page after resizing.

 

please let me know what you guys think

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.