Click here to Skip to main content
11,927,711 members (52,796 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hello Everyone !!!

I have created a website in 14' Laptop Using (c#)

When i debug website in 14' Laptop it has no horizontal scrolling bar.

But When i debug website in 15' Laptop or LCD it has horizontal scrolling bar.

Can anyone guide me what to do ?

Thanks in advance !
Posted 25-May-12 9:32am
SAKryukov 25-May-12 14:35pm
Do you think if you created a Web site in 15' laptop, it would be better? :-)
Harshit Raj Singh 25-May-12 14:36pm
Then what to do please answer
SAKryukov 25-May-12 15:58pm
ryanb31 25-May-12 14:40pm
This is likely due to a smaller resolution of the display. This is also the way the web works. If you do not like it you have to deal with CSS and/or jQuery to get your heights and widths set just right. Or use Flash/SilverLight.
SAKryukov 25-May-12 15:59pm
I just want to note: by default, with no styles and no tricks, everything is already fluid, but unnatural complications make it non-flexible. Please see my answer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

SAKryukov 25-May-12 15:57pm
Can be useful, a 5.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is probably because you are doing wrong things from the very beginning: fixed sizes or positions of the element, inflexible design.

Please read some material on the problem of nice flexible Web page design:[^],[^],[^],[^].

Find some more:[^].

Think on the design. Focus on being clear and informative, don't allow yourself to put a single non-functional "decorative" detail. Try to keep it as simple as possible, but not simpler. Make the design not vulnerable not just to the size of the Browser window, but also to those peculiarities of different layout engines; allow your site looking slightly different while remaining recognizable, accessible and well readable.

Marcus Kramer 25-May-12 15:42pm
SAKryukov 25-May-12 15:57pm
Thank you, Marcus.
ryanb31 25-May-12 16:02pm
Having fixed sizes is not wrong. Sometimes, that is what is called for. It would be great if we could always let the HTML flow naturally by the browser, but too often, the user wants a more predictable experience.
SAKryukov 28-May-12 18:07pm
I'm not sure you are right. If some element goes outside the screen and is shown with scroll bars, is it more predictable and better?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 25 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100