Click here to Skip to main content
13,143,637 members (28,398 online)
Rate this:
Please Sign up or sign in to vote.
hi all,
i want design consistency in my whole site. means i want my site in center. something like when we press control key + scroll down in mouse then whole design will comes in center of browser.

i hope that you can understand what i want to say.

Posted 16-Dec-12 21:22pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi. kkakadita,

I understood the problem that you mentioned here.

Its only due to the styles that we apply in designing the page. i.e If we design a page using a fixed width (in pixels) then that element or the page controls will follow the fixed width property. If you design the page with respect to width (in % calculation) then the page controls will follow the width of the parent control according to the screen width.

For better understanding you can try taking a demo application containing some

add some more
elements and make all teh divs of different colours and different widths.

Now put some controls in the divs and check with your ctrl + scroll property.
this will show you the difference between the two types of designing procedure.

This will definitely resolve your problem / show you the right way to handle your problem.

kkakadiya 17-Dec-12 6:33am
hi Armando Talex,
thanks for the advice. i am going to design in pixel instead of £ calculation.
Armando Talex 17-Dec-12 7:15am
If you face any issues then feel free to ask me here...
All the best!!!

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 |
Web02 | 2.8.170915.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2017
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