Rullist på centrerat innehåll för att förhindra sidoförskjutningar

Att skapa hemsidor utan rullningslistor har varit en strävan inom viss webbdesign. Nu för tiden börjar folk vänja sig vid dem och det börjar till och med göras sidor som rullar i evighet.

Om man har en webbplats med olika långa sidor på, och innehållet dessutom är centrerat, så kan detta få till följd att sidan "hoppar" i sidled när man navigerar. Detta beror på att när scrollbarsen visas så minskas webbytan med ca 16px.

För att förhindra detta kan man som CSS-Tricks förklarar, ställa in i stilmallen att scrollbars alltid ska vara framme. Om innehållet är mindre än tillgänglig yta så blir rullisten inaktiv.

html {overflow-y: scroll;}

Comments

Utmärkt kod!!
@Zerr: Kul att det kunde vara till hjälp!
bra tips, tyvärr verkar det inte fungera i firefox

thanks for this amazing post. http://www.onlinepromotionuae.ae

good tip , unfortunately it does not seem to work in Firefox.. Andaman Tour Packages

Thank a lot for this post that was very interesting. If you are worried about your Toshiba computer issues then call the technicians any time and they will assist you with best technical resolution for your issue that to be with 24*7 service. Just dial Toshiba Help Number UK 0800-098-8371.

very awesome article, thanks for the sharing with us.

Avg Antivirus Support

This is really good one post ..If you are facing problem with your McAfee antivirus while install, uninstall, upgrade, scan, activate and much more issues related to McAfee and computer. Then no need to worry call at 888-510-7517|1800-012-720 (toll-free) for instant support. For more info visit.McAfee Setup

It's really a very good blog post. Here, If you guys facing problem with your Bitdefender antivirus while install, uninstall, upgrade, scan, activate and much more issues related to McAfee and computer.

Thank you so much for sharing such a cool information with me it is very helpful for me.

it is very good post for me..i like it so excellent work done bu stuff....Norton Support

the articles you publish here are very good to read and to apply. keep posting. they are very useful and helpful. Norton Support

This is very nice one and gives in depth information. Thanks for this information which provide such a lot informative ideas. Eset Support

Thanks for sharing insightful information on the rights. Here I am having one basic question. Is the rights are same for both print and digital media or is there any changes require? Mcafee Phone Support

Thanks you so much latest update.hope so you will share also these type of updates in future.

you can get Avg Support Instantly just in one call on Toll Free Number in UK +1-888-510-6016

Thanks for providing this amazing post.....Avast Antivirus Update

Thanks for providing such an informative post. Please keep shearing these type of post, I like to read it...

Connect with us for technical support of Bitdefender Antivirus .

Trend Micro antivirus support via phone/chat(1800-012-720)technical customer service for install/uninstall,update,renewal, upgrade through highly qualified professional experts.

Get quick Brother printer customer support services with toll free phone (888-510-6016) or chat for all install, uninstall, configure & other tech errors help.

Are Seeing for Avg Antivirus Technical Support Services in USA,? PC Experts Help offers Avg Protection Tech Support such as Avg Customer Service, Malware, Avg Antivirus for Windows 7 and Virus Removal via phone/chat through certified technicians. Avg Support

Get significant Asus customer support services via chat or phone (1800-832-424) for all kinds of Asus laptop & desktop related errors & problems.

Thanks for sharing such a useful information, it's help me a lot..Asus Support

Where to find Trend Micro Support in USA? PC Experts Help Provides Trend Micro technical support services via toll free help line number/chat for renewal, install, uninstall, and removal, update, upgrade trend micro services at reasonable prices. Trend Micro Support

Are you looking for Bitdefender Support Services? No Need to Go Anywhere, PC Experts Help Provides Bitdefender Antivirus Chat Total Security Support through Certified Professional Experts via Toll Free Number (1800-012-720) at very low prices.

Thanks for the sharing! The ideas are all very practical! Your site is truly cool and this is an extraordinary moving article. Bitdefender Support

I fully agree with you .Congratulations on sharing such a detailed post. Many thanks for sharing this lovely post. Have a super nice day Trend Micro Chat Support

Get McAfee Antivirus customer care support via toll free phone/chat (1800-046-405) for account & product Key Activation services, upgrade, uninstall, renew, setup, virus removal services from www.mcafeesupports.com.au"> www.mcafeesupports.com.au

Get Microsoft Office 365 | 2016 customer support via phone (1800-046-405) or chat for install, renew, setup, activate and uninstall related technical issues. Our expert’s offers instant help for MS office activation & installation related errors & problems.

I am very happy with this heart touching information; it’s really very useful information. Here I would like to express you about PC Experts Help where I did get great Norton Support Services with their Norton certified technicians.

This blog post enfolds exceptional work, every blog post is fascinating, thanks for sharing. Sparx Running Shoes

Please fill out all the fields.

*
*